ConvertAddress() private method

private ConvertAddress ( Type source, Type target ) : void
source System.Type
target System.Type
return void
コード例 #1
0
 private void InvokeOnDeserializing(ClassDataContract classContract)
 {
     if (classContract.BaseContract != null)
         InvokeOnDeserializing(classContract.BaseContract);
     if (classContract.OnDeserializing != null)
     {
         _ilg.LoadAddress(_objectLocal);
         _ilg.ConvertAddress(_objectLocal.LocalType, _objectType);
         _ilg.Load(_contextArg);
         _ilg.LoadMember(XmlFormatGeneratorStatics.GetStreamingContextMethod);
         _ilg.Call(classContract.OnDeserializing);
     }
 }