Show / Hide Table of Contents

Class XmlTypeSerializationInfo

Denotes the default type serialization info read through reflection

Inheritance
object
XmlTypeSerializationInfo
Implements
ITypeSerializationInfo
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: NMF.Serialization
Assembly: NMF.Serialization.dll
Syntax
public class XmlTypeSerializationInfo : ITypeSerializationInfo

Constructors

| Edit this page View Source

XmlTypeSerializationInfo(Type)

Creates a new instance

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
Type Description
IEnumerable<IPropertySerializationInfo>
| Edit this page View Source

BaseTypes

Declaration
public List<ITypeSerializationInfo> BaseTypes { get; }
Property Value
Type Description
List<ITypeSerializationInfo>
| Edit this page View Source

CollectionItemRawType

Declaration
public Type CollectionItemRawType { get; set; }
Property Value
Type Description
Type
| Edit this page View Source

CollectionItemType

Gets the element type of a collection

Declaration
public ITypeSerializationInfo CollectionItemType { get; set; }
Property Value
Type Description
ITypeSerializationInfo
| Edit this page View Source

CollectionType

Declaration
public Type CollectionType { get; set; }
Property Value
Type Description
Type
| Edit this page View Source

Constructor

Declaration
public ConstructorInfo Constructor { get; set; }
Property Value
Type Description
ConstructorInfo
| Edit this page View Source

ConstructorParameterCount

Declaration
public int ConstructorParameterCount { get; }
Property Value
Type Description
int
| Edit this page View Source

ConstructorProperties

Gets the properties required for constructor calls

Declaration
public IPropertySerializationInfo[] ConstructorProperties { get; set; }
Property Value
Type Description
IPropertySerializationInfo[]
| Edit this page View Source

DeclaredAttributeProperties

Declaration
public List<IPropertySerializationInfo> DeclaredAttributeProperties { get; }
Property Value
Type Description
List<IPropertySerializationInfo>
| Edit this page View Source

DeclaredElementProperties

Declaration
public List<IPropertySerializationInfo> DeclaredElementProperties { get; }
Property Value
Type Description
List<IPropertySerializationInfo>
| Edit this page View Source

DefaultProperty

Gets the default property of this type

Declaration
public IPropertySerializationInfo DefaultProperty { get; set; }
Property Value
Type Description
IPropertySerializationInfo
| Edit this page View Source

ElementName

Gets the element name of the type

Declaration
public string ElementName { get; set; }
Property Value
Type Description
string
| Edit this page View Source

ElementProperties

Gets a collection of properties serialized as elements

Declaration
public IEnumerable<IPropertySerializationInfo> ElementProperties { get; }
Property Value
Type Description
IEnumerable<IPropertySerializationInfo>
| Edit this page View Source

HasConstructorParameters

Declaration
public bool HasConstructorParameters { get; }
Property Value
Type Description
bool
| Edit this page View Source

IdentifierProperty

Gets the property used as identifier

Declaration
public IPropertySerializationInfo IdentifierProperty { get; set; }
Property Value
Type Description
IPropertySerializationInfo
| Edit this page View Source

IsCollection

True, if this type is a collection

Declaration
public bool IsCollection { get; }
Property Value
Type Description
bool
| Edit this page View Source

IsIdentified

True, if instances of this type are identified

Declaration
public bool IsIdentified { get; }
Property Value
Type Description
bool
| Edit this page View Source

IsStaticCollection

Declaration
public bool IsStaticCollection { get; }
Property Value
Type Description
bool
| Edit this page View Source

IsStringConvertible

True, if the items can be converted to string

Declaration
public bool IsStringConvertible { get; }
Property Value
Type Description
bool
| Edit this page View Source

MappedType

Gets the system type this type serialization is mapped to

Declaration
public Type MappedType { get; }
Property Value
Type Description
Type
| Edit this page View Source

Namespace

Gets the namespace of the type or null

Declaration
public string Namespace { get; set; }
Property Value
Type Description
string
| Edit this page View Source

NamespacePrefix

Gets the namespace prefix of the type or null

Declaration
public string NamespacePrefix { get; set; }
Property Value
Type Description
string
| Edit this page View Source

Type

Declaration
public Type Type { get; }
Property Value
Type Description
Type

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[])

Creates a new instance

Declaration
public object CreateObject(object[] args)
Parameters
Type Name Description
object[] args

The constructor parameters

Returns
Type Description
object
| 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
Type Name Description
ITypeSerializationInfo specializedType

the more concrete type

Returns
Type Description
bool

True, if the type is assignable, otherwise False

| Edit this page View Source

IsExplicitTypeInformationRequired(ITypeSerializationInfo)

Determines whether the serializer should render explicit type information

Declaration
public bool IsExplicitTypeInformationRequired(ITypeSerializationInfo itemType)
Parameters
Type Name Description
ITypeSerializationInfo itemType

The type of the item

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
Type Description
string
Overrides
object.ToString()

Implements

ITypeSerializationInfo
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX