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

IfNot() private method

private IfNot ( ) : void
return void
        internal void IfNot()
        {
            InternalIf(true);
        }

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::IfNot