Метод | Описание | |
---|---|---|
DataContractSerializerFactory ( ) : System |
Initializes a new instance of the DataContractSerializerFactory class.
|
|
GetDataContractSerializer ( |
Gets the Data Contract serializer for a specific type. This method caches serializers so the performance can be improved when a serializer is used more than once.
|
Метод | Описание | |
---|---|---|
AddTypeToKnownTypesIfSerializable ( |
Adds the type to the known types if the type is serializable.
|
|
AllowNonPublicReflection ( |
Returns whether non-public reflection is allowed on the specified type.
|
|
GetKnownTypes ( |
Gets the known types inside the specific type.
|
|
GetKnownTypesViaAttributes ( |
Gets the known types via attributes.
|
|
IsTypeSerializable ( |
Determines whether the specified type is serializable.
|
|
ShouldTypeBeIgnored ( |
Determines whether the type should be handled.
|
Метод | Описание | |
---|---|---|
AddTypeMembers ( |
||
GetDataContractSerializer ( |
||
GetKnownTypesForInstance ( object obj, XmlSerializerTypeInfo serializerTypeInfo ) : void | ||
GetKnownTypesForItems ( |
Gets the known types of IEnumerable type.
|
|
GetKnownTypesForItemsInstance ( object obj, XmlSerializerTypeInfo serializerTypeInfo ) : void |
protected AddTypeToKnownTypesIfSerializable ( |
||
typeToAdd | The type to add. | |
serializerTypeInfo | XmlSerializerTypeInfo | The serializer type info. |
Результат | bool |
protected AllowNonPublicReflection ( |
||
type | The type. | |
Результат | bool |
public DataContractSerializerFactory ( ) : System | ||
Результат | System |
public GetDataContractSerializer ( |
||
serializingType | The type that is currently (de)serializing. | |
typeToSerialize | The type to (de)serialize. | |
xmlName | string | Name of the property as known in XML. |
rootNamespace | string | The root namespace. |
additionalKnownTypes | List |
A list of additional types to add to the known types. |
Результат |
protected GetKnownTypes ( |
||
type | The type. | |
serializerTypeInfo | XmlSerializerTypeInfo | The serializer type info. |
resolveAbstractClassesAndInterfaces | bool | if set to |
Результат | void |
protected GetKnownTypesViaAttributes ( |
||
type | The type. | |
Результат | System.Type[] |
protected IsTypeSerializable ( |
||
type | The type. | |
serializerTypeInfo | XmlSerializerTypeInfo | The serializer type information. |
Результат | bool |
protected ShouldTypeBeIgnored ( |
||
type | The type. | |
serializerTypeInfo | XmlSerializerTypeInfo | The serializer type info. |
Результат | bool |