C# Класс numl.Model.DescriptorProperty

Fluent API addition for simplifying the process of adding features and labels to a descriptor.
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
AddProperty ( Property p ) : void

Adds a property.

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

internal constructor used for creating chaining.

Описание методов

As() публичный Метод

Adds the specified property to the descriptor with the chained name
public As ( Property property ) : Descriptor
property Property The property.
Результат Descriptor

As() публичный Метод

Adds property to descriptor with chained name and type.
public As ( Type type ) : Descriptor
type System.Type Property Type.
Результат Descriptor

AsDateTime() публичный Метод

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)
Результат Descriptor

AsDateTime() публичный Метод

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)
Результат Descriptor

AsEnumerable() публичный Метод

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.
Результат Descriptor

AsGuid() публичный Метод

Adds guid property to descriptor with previously chained name.
public AsGuid ( ) : Descriptor
Результат Descriptor

AsString() публичный Метод

Adds the default string property to descriptor with previously chained name.
public AsString ( ) : Descriptor
Результат Descriptor

AsString() публичный Метод

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.
Результат Descriptor

AsStringEnum() публичный Метод

Adds string property to descriptor with previously chained name.
public AsStringEnum ( ) : Descriptor
Результат Descriptor

Use() публичный Метод

Not ready.
Thrown when the requested operation is unimplemented.
public Use ( double>.Func conversion ) : Descriptor
conversion double>.Func Conversion method.
Результат Descriptor