C# Класс Zetetic.Chain.Xml.XmlConfig

Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
GetPropValue string

Открытые методы

Метод Описание
ChangeType ( object value, Type conversionType ) : object

Returns an Object with the specified Type and whose value is equivalent to the specified object. Swiped from http://aspalliance.com/852_CodeSnip_ConvertChangeType_Wrapper_that_Handles_Nullable_Types

This method exists as a workaround to System.Convert.ChangeType(Object, Type) which does not handle nullables as of version 2.0 (2.0.50727.42) of the .NET Framework. The idea is that this method will be deleted once Convert.ChangeType is updated in a future version of the .NET Framework to handle nullable types, so we want this to behave as closely to Convert.ChangeType as possible. This method was written by Peter Johnson at: http://aspalliance.com/author.aspx?uId=1026.

CreateFromICommand ( ICommand cmd ) : XmlConfig
ResolveInternals ( ) : ICommand

Защищенные методы

Метод Описание
DeserializeProperties ( ICommand target ) : ICommand

Deserialize the properties of the current XmlChain / XmlCommand and try to set the writeable properties of the output ICommand

ExcludeProperty ( PropertyInfo pi ) : bool

Don't discover properties with XmlIgnoreAttribute, nor the reserved 'Name' property.

IsChainRequired ( PropertyInfo pi ) : bool
SerializeProperties ( ICommand cmd, XmlConfig target ) : void

Investigate writeable, IConvertible properties of ICommand 'cmd' and write them into the XML-serializable properties of 'target'

Приватные методы

Метод Описание
GetPropValue ( string key ) : string

Описание методов

ChangeType() публичный статический Метод

Returns an Object with the specified Type and whose value is equivalent to the specified object. Swiped from http://aspalliance.com/852_CodeSnip_ConvertChangeType_Wrapper_that_Handles_Nullable_Types
This method exists as a workaround to System.Convert.ChangeType(Object, Type) which does not handle nullables as of version 2.0 (2.0.50727.42) of the .NET Framework. The idea is that this method will be deleted once Convert.ChangeType is updated in a future version of the .NET Framework to handle nullable types, so we want this to behave as closely to Convert.ChangeType as possible. This method was written by Peter Johnson at: http://aspalliance.com/author.aspx?uId=1026.
public static ChangeType ( object value, Type conversionType ) : object
value object An Object that implements the IConvertible interface.
conversionType System.Type The Type to which value is to be converted.
Результат object

CreateFromICommand() публичный статический Метод

public static CreateFromICommand ( ICommand cmd ) : XmlConfig
cmd ICommand
Результат XmlConfig

DeserializeProperties() защищенный Метод

Deserialize the properties of the current XmlChain / XmlCommand and try to set the writeable properties of the output ICommand
If ChainRequired property is absent
protected DeserializeProperties ( ICommand target ) : ICommand
target ICommand
Результат ICommand

ExcludeProperty() защищенный статический Метод

Don't discover properties with XmlIgnoreAttribute, nor the reserved 'Name' property.
protected static ExcludeProperty ( PropertyInfo pi ) : bool
pi System.Reflection.PropertyInfo
Результат bool

IsChainRequired() защищенный статический Метод

protected static IsChainRequired ( PropertyInfo pi ) : bool
pi System.Reflection.PropertyInfo
Результат bool

ResolveInternals() публичный абстрактный Метод

public abstract ResolveInternals ( ) : ICommand
Результат ICommand

SerializeProperties() защищенный статический Метод

Investigate writeable, IConvertible properties of ICommand 'cmd' and write them into the XML-serializable properties of 'target'
If ChainRequired property is absent
protected static SerializeProperties ( ICommand cmd, XmlConfig target ) : void
cmd ICommand
target XmlConfig
Результат void