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