C# Class numl.Model.DescriptorProperty

Fluent API addition for simplifying the process of adding features and labels to a descriptor.
Afficher le fichier Open project: sethjuarez/numl

Méthodes publiques

Méthode Description
As ( Property property ) : Descriptor

Adds the specified property to the descriptor with the chained name

As ( Type type ) : Descriptor

Adds property to descriptor with chained name and type.

AsDateTime ( DatePortion portion ) : Descriptor

Adds DateTime property to descriptor with previously chained name.

AsDateTime ( DateTimeFeature features ) : Descriptor

Adds DateTime property to descriptor with previously chained name.

AsEnumerable ( int length ) : Descriptor

Adds Enumerable property to descriptor with previousy chained name.

AsGuid ( ) : Descriptor

Adds guid property to descriptor with previously chained name.

AsString ( ) : Descriptor

Adds the default string property to descriptor with previously chained name.

AsString ( StringSplitType splitType, string separator = " ", string exclusions = null ) : Descriptor

Adds string property to descriptor with previously chained name.

AsStringEnum ( ) : Descriptor

Adds string property to descriptor with previously chained name.

Use ( double>.Func conversion ) : Descriptor

Not ready.

Private Methods

Méthode Description
AddProperty ( Property p ) : void

Adds a property.

DescriptorProperty ( Descriptor descriptor, string name, bool label ) : System

internal constructor used for creating chaining.

Method Details

As() public méthode

Adds the specified property to the descriptor with the chained name
public As ( Property property ) : Descriptor
property Property The property.
Résultat Descriptor

As() public méthode

Adds property to descriptor with chained name and type.
public As ( Type type ) : Descriptor
type System.Type Property Type.
Résultat Descriptor

AsDateTime() public méthode

Adds DateTime property to descriptor with previously chained name.
Thrown when a Descriptor error condition occurs.
public AsDateTime ( DatePortion portion ) : Descriptor
portion DatePortion Which date portions to use (can pipe: DateTimeFeature.Year | /// DateTimeFeature.DayOfWeek)
Résultat Descriptor

AsDateTime() public méthode

Adds DateTime property to descriptor with previously chained name.
Thrown when a Descriptor error condition occurs.
public AsDateTime ( DateTimeFeature features ) : Descriptor
features DateTimeFeature Which date features to use (can pipe: DateTimeFeature.Year | /// DateTimeFeature.DayOfWeek)
Résultat Descriptor

AsEnumerable() public méthode

Adds Enumerable property to descriptor with previousy chained name.
Thrown when a Descriptor error condition occurs.
public AsEnumerable ( int length ) : Descriptor
length int length of enumerable to expand.
Résultat Descriptor

AsGuid() public méthode

Adds guid property to descriptor with previously chained name.
public AsGuid ( ) : Descriptor
Résultat Descriptor

AsString() public méthode

Adds the default string property to descriptor with previously chained name.
public AsString ( ) : Descriptor
Résultat Descriptor

AsString() public méthode

Adds string property to descriptor with previously chained name.
public AsString ( StringSplitType splitType, string separator = " ", string exclusions = null ) : Descriptor
splitType StringSplitType How to split string.
separator string (Optional) Separator to use.
exclusions string (Optional) file describing strings to exclude.
Résultat Descriptor

AsStringEnum() public méthode

Adds string property to descriptor with previously chained name.
public AsStringEnum ( ) : Descriptor
Résultat Descriptor

Use() public méthode

Not ready.
Thrown when the requested operation is unimplemented.
public Use ( double>.Func conversion ) : Descriptor
conversion double>.Func Conversion method.
Résultat Descriptor