41 references to SerializationMode
System.Runtime.Serialization (41)
System\Runtime\Serialization\CollectionDataContract.cs (4)
1252internal override DataContract GetValidContract(SerializationMode mode) 1254if (mode == SerializationMode.SharedType) 1295internal override bool IsValidContract(SerializationMode mode) 1297if (mode == SerializationMode.SharedType)
System\Runtime\Serialization\DataContract.cs (6)
54return GetDataContract(type.TypeHandle, type, SerializationMode.SharedContract); 57internal static DataContract GetDataContract(RuntimeTypeHandle typeHandle, Type type, SerializationMode mode) 63internal static DataContract GetDataContract(int id, RuntimeTypeHandle typeHandle, SerializationMode mode) 79internal static DataContract GetGetOnlyCollectionDataContract(int id, RuntimeTypeHandle typeHandle, Type type, SerializationMode mode) 366internal virtual DataContract GetValidContract(SerializationMode mode) 376internal virtual bool IsValidContract(SerializationMode mode)
System\Runtime\Serialization\DataContractSerializer.cs (1)
425return DataContract.GetDataContract(objectType.TypeHandle, objectType, SerializationMode.SharedContract);
System\Runtime\Serialization\DataContractSet.cs (1)
273return DataContract.GetGetOnlyCollectionDataContract(DataContract.GetId(dataMemberType.TypeHandle), dataMemberType.TypeHandle, dataMemberType, SerializationMode.SharedContract);
System\Runtime\Serialization\DataMember.cs (1)
237memberTypeContract = DataContract.GetGetOnlyCollectionDataContract(DataContract.GetId(MemberType.TypeHandle), MemberType.TypeHandle, MemberType, SerializationMode.SharedContract);
System\Runtime\Serialization\NetDataContractSerializer.cs (3)
457dataContract = DataContract.GetDataContract(typeHandle, type, SerializationMode.SharedType); 466return DataContract.GetDataContract(typeHandle, type, SerializationMode.SharedType); 504itemContract = DataContract.GetDataContract(elementType.TypeHandle, elementType, SerializationMode.SharedType);
System\Runtime\Serialization\XmlObjectSerializerContext.cs (2)
76internal virtual SerializationMode Mode 78get { return SerializationMode.SharedContract; }
System\Runtime\Serialization\XmlObjectSerializerReadContextComplex.cs (11)
33SerializationMode mode; 42this.mode = SerializationMode.SharedContract; 50this.mode = SerializationMode.SharedType; 62internal override SerializationMode Mode 70if (mode == SerializationMode.SharedType && surrogateSelector != null) 91if (mode == SerializationMode.SharedType && surrogateSelector != null) 111if (mode == SerializationMode.SharedContract) 126if (mode == SerializationMode.SharedContract) 141if (mode == SerializationMode.SharedContract) 306if (mode == SerializationMode.SharedContract) 335if (mode == SerializationMode.SharedType && surrogateSelector != null &&
System\Runtime\Serialization\XmlObjectSerializerWriteContext.cs (1)
190if (this.Mode == SerializationMode.SharedType && dataContract.IsValidContract(this.Mode))
System\Runtime\Serialization\XmlObjectSerializerWriteContextComplex.cs (11)
28SerializationMode mode; 37this.mode = SerializationMode.SharedContract; 45this.mode = SerializationMode.SharedType; 58internal override SerializationMode Mode 66if (mode == SerializationMode.SharedType && surrogateSelector != null) 87if (mode == SerializationMode.SharedType && surrogateSelector != null) 108if (mode == SerializationMode.SharedType && surrogateSelector != null) 128if (mode == SerializationMode.SharedType) 138if (mode == SerializationMode.SharedType) 148if (mode == SerializationMode.SharedType) 287if (mode == SerializationMode.SharedType && surrogateSelector != null &&