C# 클래스 Zetetic.Chain.Xml.XmlConfig

파일 보기 프로젝트 열기: skradel/Zetetic.Chain 1 사용 예제들

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