示例#1
0
 internal override bool WriteClrTypeInfo(XmlWriterDelegator xmlWriter, Type dataContractType, string clrTypeName, string clrAssemblyName)
 {
     if (mode == SerializationMode.SharedType)
     {
         NetDataContractSerializer.WriteClrTypeInfo(xmlWriter, dataContractType, binder, clrTypeName, clrAssemblyName);
         return(true);
     }
     return(false);
 }
示例#2
0
 internal override bool WriteClrTypeInfo(XmlWriterDelegator xmlWriter, Type dataContractType, SerializationInfo serInfo)
 {
     if (mode == SerializationMode.SharedType)
     {
         NetDataContractSerializer.WriteClrTypeInfo(xmlWriter, dataContractType, binder, serInfo);
         return(true);
     }
     return(false);
 }
 internal override bool WriteClrTypeInfo(XmlWriterDelegator xmlWriter, DataContract dataContract)
 {
     if (this.mode == SerializationMode.SharedType)
     {
         NetDataContractSerializer.WriteClrTypeInfo(xmlWriter, dataContract, this.binder);
         return(true);
     }
     return(false);
 }