Show / Hide Table of Contents

Interface IPropertySerializationInfo

Denotes the serialization information for a property

Namespace: NMF.Serialization
Assembly: NMF.Serialization.dll
Syntax
public interface IPropertySerializationInfo

Properties

| Edit this page View Source

ElementName

The element name that should be serialized

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

IdentificationMode

Gets the identification mode of the property

Declaration
XmlIdentificationMode IdentificationMode { get; }
Property Value
Type Description
XmlIdentificationMode
| Edit this page View Source

IsIdentifier

True, if the property is an identifier, otherwise False

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

IsReadOnly

True, if the property is read-only, otherwise False

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

IsStringConvertible

True, if the value of this property allows roundtrip-serialization to string

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

Namespace

The namespace to which the element should be serialized or null

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

NamespacePrefix

The namespace prefix that should be used for serialization or null

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

Opposite

Gets the opposite property or null

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

PropertyMinType

Gets the minimum type system type of the property

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

PropertyType

Gets the property type

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

RequiresInitialization

True, if the property requires initialization, otherwise False

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

ShallCreateInstance

Determines whether the instance should be created explicitly

Declaration
bool ShallCreateInstance { get; }
Property Value
Type Description
bool

Methods

| Edit this page View Source

AddToCollection(object, object, XmlSerializationContext)

Adds the given object to the collection

Declaration
void AddToCollection(object input, object item, XmlSerializationContext context)
Parameters
Type Name Description
object input

The context object

object item

The item that should be added

XmlSerializationContext context

The deserialization context

| Edit this page View Source

ConvertFromString(string)

Deserializes the provided text

Declaration
object ConvertFromString(string text)
Parameters
Type Name Description
string text

the text

Returns
Type Description
object

The deserialized value

| Edit this page View Source

ConvertToString(object)

Converts the provided object to a string

Declaration
string ConvertToString(object input)
Parameters
Type Name Description
object input

The object to convert

Returns
Type Description
string

A string representation

| Edit this page View Source

GetValue(object, XmlSerializationContext)

Gets the value of this property for the given input object

Declaration
object GetValue(object input, XmlSerializationContext context)
Parameters
Type Name Description
object input

The context object

XmlSerializationContext context

The serialization context

Returns
Type Description
object
| Edit this page View Source

Initialize(object, XmlSerializationContext)

Initializes the property for the given element

Declaration
void Initialize(object input, XmlSerializationContext context)
Parameters
Type Name Description
object input

The object instance for which the property should be initialized

XmlSerializationContext context

The deserialization context

| Edit this page View Source

SetValue(object, object, XmlSerializationContext)

Sets the value for the property

Declaration
void SetValue(object input, object value, XmlSerializationContext context)
Parameters
Type Name Description
object input

The context object

object value

The value of the property

XmlSerializationContext context

The deserialization context

| Edit this page View Source

ShouldSerializeValue(object, object)

Determines whether the provided value should be serialized

Declaration
bool ShouldSerializeValue(object obj, object value)
Parameters
Type Name Description
object obj

The context object

object value

The value in question

Returns
Type Description
bool

True, if the value should be serialized, otherwise False

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