C# Class Mono.MoonlightTypeConverter

Inheritance: System.ComponentModel.TypeConverter
ファイルを表示 Open project: shana/moon Class Usage Examples

Protected Properties

Property Type Description
destinationKind Kind
destinationType System.Type
nullableDestination bool
propertyName string

Public Methods

Method Description
CanConvertFrom ( ITypeDescriptorContext context, Type sourceType ) : bool
ConvertFrom ( ITypeDescriptorContext context, System culture, object value ) : object
ConvertObject ( DependencyProperty dp, object val, Type objectType, bool doToStringConversion ) : object
ConvertObject ( PropertyInfo prop, object val, Type objectType ) : object
IsAssignableToIConvertible ( Type type ) : bool
MoonlightTypeConverter ( string propertyName, Type destinationType ) : Mono
ValueFromConvertible ( Type type, IConvertible value ) : object

Private Methods

Method Description
GetGetterMethodForAttachedDP ( DependencyProperty dp, object obj ) : MethodInfo

Method Details

CanConvertFrom() public method

public CanConvertFrom ( ITypeDescriptorContext context, Type sourceType ) : bool
context ITypeDescriptorContext
sourceType System.Type
return bool

ConvertFrom() public method

public ConvertFrom ( ITypeDescriptorContext context, System culture, object value ) : object
context ITypeDescriptorContext
culture System
value object
return object

ConvertObject() public static method

public static ConvertObject ( DependencyProperty dp, object val, Type objectType, bool doToStringConversion ) : object
dp System.Windows.DependencyProperty
val object
objectType System.Type
doToStringConversion bool
return object

ConvertObject() public static method

public static ConvertObject ( PropertyInfo prop, object val, Type objectType ) : object
prop System.Reflection.PropertyInfo
val object
objectType System.Type
return object

IsAssignableToIConvertible() public static method

public static IsAssignableToIConvertible ( Type type ) : bool
type System.Type
return bool

MoonlightTypeConverter() public method

public MoonlightTypeConverter ( string propertyName, Type destinationType ) : Mono
propertyName string
destinationType System.Type
return Mono

ValueFromConvertible() public static method

public static ValueFromConvertible ( Type type, IConvertible value ) : object
type System.Type
value IConvertible
return object

Property Details

destinationKind protected_oe property

protected Kind destinationKind
return Kind

destinationType protected_oe property

protected Type,System destinationType
return System.Type

nullableDestination protected_oe property

protected bool nullableDestination
return bool

propertyName protected_oe property

protected string propertyName
return string