System.Runtime.Serialization.CodeGenerator.EndIf C# (CSharp) Method

EndIf() private method

private EndIf ( ) : void
return void
        internal void EndIf()
        {
            IfState ifState = PopIfState();
            if (!ifState.ElseBegin.Equals(ifState.EndIf))
                MarkLabel(ifState.ElseBegin);
            MarkLabel(ifState.EndIf);
        }

Usage Example

コード例 #1
0
 void ThrowIfCannotSerializeReadOnlyTypes(PropertyInfo serializationExceptionMessageProperty)
 {
     ilg.Load(contextArg);
     ilg.LoadMember(XmlFormatGeneratorStatics.SerializeReadOnlyTypesProperty);
     ilg.IfNot();
     ilg.Load(dataContractArg);
     ilg.LoadMember(serializationExceptionMessageProperty);
     ilg.Load(null);
     ilg.Call(XmlFormatGeneratorStatics.ThrowInvalidDataContractExceptionMethod);
     ilg.EndIf();
 }
All Usage Examples Of System.Runtime.Serialization.CodeGenerator::EndIf