C# Class Adf.Base.Domain.NullablePropertyParser

Represents Nullable property parsing operations.
Inheritance: IPropertyParser
Afficher le fichier Open project: NLADP/ADF

Méthodes publiques

Méthode Description
GetCollection ( Type targetType, bool includeEmpty, IEnumerable items = null ) : ICollection
GetCollection ( object target, bool includeEmpty, IEnumerable items = null ) : ICollection

Creates a new instance of ValueCollection class to get the collection of ValueItem. An indicator is also supplied to indicate whether empty will be included or not.

IsEmpty ( object value ) : bool

Checks whether the specified Object is empty or not.

IsEqual ( object compare, object to ) : bool

Checks whether the two specified Objects are equal or not.

IsParsable ( Type type ) : bool

Indicates whether the specified Type is parsable or not.

SetValue ( object instance, PropertyInfo pi, object newvalue, CultureInfo culture = null ) : void

Sets the new value for a specific property on an object.

Method Details

GetCollection() public méthode

public GetCollection ( Type targetType, bool includeEmpty, IEnumerable items = null ) : ICollection
targetType System.Type
includeEmpty bool
items IEnumerable
Résultat ICollection

GetCollection() public méthode

Creates a new instance of ValueCollection class to get the collection of ValueItem. An indicator is also supplied to indicate whether empty will be included or not.
public GetCollection ( object target, bool includeEmpty, IEnumerable items = null ) : ICollection
target object The object.
includeEmpty bool The indicator to indicate whether empty will be included or not.
items IEnumerable
Résultat ICollection

IsEmpty() public méthode

Checks whether the specified Object is empty or not.
public IsEmpty ( object value ) : bool
value object The Object to be checked for null or empty.
Résultat bool

IsEqual() public méthode

Checks whether the two specified Objects are equal or not.
public IsEqual ( object compare, object to ) : bool
compare object The Object to compare.
to object The Object to compare with.
Résultat bool

IsParsable() public méthode

Indicates whether the specified Type is parsable or not.
public IsParsable ( Type type ) : bool
type System.Type The specified .
Résultat bool

SetValue() public méthode

Sets the new value for a specific property on an object.
public SetValue ( object instance, PropertyInfo pi, object newvalue, CultureInfo culture = null ) : void
instance object Target object to set property at.
pi System.Reflection.PropertyInfo Property info for the property to set.
newvalue object Value to try to parse.
culture System.Globalization.CultureInfo
Résultat void