6 writes to state
System.Runtime.Serialization (6)
System\Xml\XmlMtomWriter.cs (6)
992
this.
state
= MimeWriterState.Start;
1036
state
= MimeWriterState.StartPreface;
1050
state
= MimeWriterState.StartPart;
1072
state
= MimeWriterState.Closed;
1113
state
= MimeWriterState.Header;
1133
state
= MimeWriterState.Content;
11 references to state
System.Runtime.Serialization (11)
System\Xml\XmlMtomWriter.cs (11)
1022
return
state
;
1033
if (
state
!= MimeWriterState.Start)
1034
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.MimeWriterInvalidStateForStartPreface,
state
.ToString())));
1041
switch (
state
)
1045
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.MimeWriterInvalidStateForStartPart,
state
.ToString())));
1064
switch (
state
)
1067
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.MimeWriterInvalidStateForClose,
state
.ToString())));
1103
switch (
state
)
1108
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.MimeWriterInvalidStateForHeader,
state
.ToString())));
1123
switch (
state
)
1128
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.MimeWriterInvalidStateForContent,
state
.ToString())));