Class XmlTypeSerializationInfo
Denotes the default type serialization info read through reflection
Inheritance
XmlTypeSerializationInfo
Assembly: NMF.Serialization.dll
Syntax
public class XmlTypeSerializationInfo : ITypeSerializationInfo
Constructors
|
Edit this page
View Source
XmlTypeSerializationInfo(Type)
Declaration
public XmlTypeSerializationInfo(Type type)
Parameters
Type |
Name |
Description |
Type |
type |
The type that is read
|
Properties
|
Edit this page
View Source
AttributeProperties
Gets a collection of properties serialized as attributes
Declaration
public IEnumerable<IPropertySerializationInfo> AttributeProperties { get; }
Property Value
|
Edit this page
View Source
BaseTypes
Declaration
public List<ITypeSerializationInfo> BaseTypes { get; }
Property Value
|
Edit this page
View Source
CollectionItemRawType
Declaration
public Type CollectionItemRawType { get; set; }
Property Value
|
Edit this page
View Source
CollectionItemType
Gets the element type of a collection
Declaration
public ITypeSerializationInfo CollectionItemType { get; set; }
Property Value
|
Edit this page
View Source
CollectionType
Declaration
public Type CollectionType { get; set; }
Property Value
|
Edit this page
View Source
Constructor
Declaration
public ConstructorInfo Constructor { get; set; }
Property Value
|
Edit this page
View Source
ConstructorParameterCount
Declaration
public int ConstructorParameterCount { get; }
Property Value
|
Edit this page
View Source
ConstructorProperties
Gets the properties required for constructor calls
Declaration
public IPropertySerializationInfo[] ConstructorProperties { get; set; }
Property Value
|
Edit this page
View Source
DeclaredAttributeProperties
Declaration
public List<IPropertySerializationInfo> DeclaredAttributeProperties { get; }
Property Value
|
Edit this page
View Source
DeclaredElementProperties
Declaration
public List<IPropertySerializationInfo> DeclaredElementProperties { get; }
Property Value
|
Edit this page
View Source
DefaultProperty
Gets the default property of this type
Declaration
public IPropertySerializationInfo DefaultProperty { get; set; }
Property Value
|
Edit this page
View Source
ElementName
Gets the element name of the type
Declaration
public string ElementName { get; set; }
Property Value
|
Edit this page
View Source
ElementProperties
Gets a collection of properties serialized as elements
Declaration
public IEnumerable<IPropertySerializationInfo> ElementProperties { get; }
Property Value
|
Edit this page
View Source
HasConstructorParameters
Declaration
public bool HasConstructorParameters { get; }
Property Value
|
Edit this page
View Source
IdentifierProperty
Gets the property used as identifier
Declaration
public IPropertySerializationInfo IdentifierProperty { get; set; }
Property Value
|
Edit this page
View Source
IsCollection
True, if this type is a collection
Declaration
public bool IsCollection { get; }
Property Value
|
Edit this page
View Source
IsIdentified
True, if instances of this type are identified
Declaration
public bool IsIdentified { get; }
Property Value
|
Edit this page
View Source
IsStaticCollection
Declaration
public bool IsStaticCollection { get; }
Property Value
|
Edit this page
View Source
IsStringConvertible
True, if the items can be converted to string
Declaration
public bool IsStringConvertible { get; }
Property Value
|
Edit this page
View Source
MappedType
Gets the system type this type serialization is mapped to
Declaration
public Type MappedType { get; }
Property Value
|
Edit this page
View Source
Namespace
Gets the namespace of the type or null
Declaration
public string Namespace { get; set; }
Property Value
|
Edit this page
View Source
NamespacePrefix
Gets the namespace prefix of the type or null
Declaration
public string NamespacePrefix { get; set; }
Property Value
|
Edit this page
View Source
Type
Declaration
public Type Type { get; }
Property Value
Methods
|
Edit this page
View Source
AddToCollection(object, object)
Adds the given item to the collection
Declaration
public void AddToCollection(object collection, object item)
Parameters
Type |
Name |
Description |
object |
collection |
the collection
|
object |
item |
the item to add
|
|
Edit this page
View Source
ConvertFromString(string)
Deserializes the given text into an object
Declaration
public object ConvertFromString(string text)
Parameters
Type |
Name |
Description |
string |
text |
the textual representation
|
Returns
Type |
Description |
object |
The deserialized object
|
|
Edit this page
View Source
ConvertToString(object)
Serializes the given object into a string
Declaration
public string ConvertToString(object input)
Parameters
Type |
Name |
Description |
object |
input |
the object
|
Returns
Type |
Description |
string |
a textual representation
|
|
Edit this page
View Source
CreateCollectionAddMethod()
Declaration
public void CreateCollectionAddMethod()
|
Edit this page
View Source
CreateObject(object[])
Declaration
public object CreateObject(object[] args)
Parameters
Type |
Name |
Description |
object[] |
args |
The constructor parameters
|
Returns
|
Edit this page
View Source
IsAssignableFrom(ITypeSerializationInfo)
Determines whether an instance of the given more concrete type can be assigned to this type
Declaration
public bool IsAssignableFrom(ITypeSerializationInfo specializedType)
Parameters
Returns
Type |
Description |
bool |
True, if the type is assignable, otherwise False
|
|
Edit this page
View Source
Determines whether the serializer should render explicit type information
Declaration
public bool IsExplicitTypeInformationRequired(ITypeSerializationInfo itemType)
Parameters
Returns
Type |
Description |
bool |
True, if explicit type information should be rendered, otherwise false
|
|
Edit this page
View Source
IsInstanceOf(object)
Determines whether the given object is an instance of this type
Declaration
public bool IsInstanceOf(object instance)
Parameters
Type |
Name |
Description |
object |
instance |
the instance
|
Returns
Type |
Description |
bool |
True, if the object is an instance of the serialization type, otherwise False
|
|
Edit this page
View Source
ToString()
Declaration
public override string ToString()
Returns
Overrides
Implements