C# Class Adf.Base.Domain.GuidPropertyParser

Represents Guid property parsing operation.
Inheritance: IPropertyParser
Datei anzeigen Open project: NLADP/ADF

Public Methods

Method 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.

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 target, PropertyInfo pi, object newvalue, CultureInfo culture = null ) : void

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

Method Details

GetCollection() public method

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

GetCollection() public method

Creates a new instance of ValueCollection class to get the collection of ValueItem.
public GetCollection ( object target, bool includeEmpty, IEnumerable items = null ) : ICollection
target object Not used
includeEmpty bool Not used
items IEnumerable
return ICollection

IsEmpty() public method

Checks whether the specified object is empty or not.
public IsEmpty ( object value ) : bool
value object The Object to be checked
return bool

IsEqual() public method

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.
return bool

IsParsable() public method

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

SetValue() public method

Sets the new value for a specific property on an object.
Unable to convert the new value to the specified property. null reference is not accept as a valid argument.
public SetValue ( object target, PropertyInfo pi, object newvalue, CultureInfo culture = null ) : void
target object Target object to set the property.
pi System.Reflection.PropertyInfo Property info for the property to set.
newvalue object Value for the property.
culture System.Globalization.CultureInfo
return void