Class Descriptor<T>
Class Descriptor.
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace:numl.Model
Assembly:numl.dll
Syntax
public class Descriptor<T> : Descriptor
Type Parameters
Name | Description |
---|---|
T |
Constructors
View SourceDescriptor()
Initializes a new instance of the Descriptor class.
Declaration
public Descriptor()
Methods
View SourceLearn(Expression<Func<T, Object>>)
Learns the given property.
Declaration
public Descriptor<T> Learn(Expression<Func<T, object>> property)
Parameters
Type | Name | Description |
---|---|---|
System.Linq.Expressions.Expression<System.Func<T, System.Object>> | property | The property. |
Returns
Type | Description |
---|---|
Descriptor<T> | A Descriptor<T> |
With(Expression<Func<T, Object>>)
Withs the given property.
Declaration
public Descriptor<T> With(Expression<Func<T, object>> property)
Parameters
Type | Name | Description |
---|---|---|
System.Linq.Expressions.Expression<System.Func<T, System.Object>> | property | The property. |
Returns
Type | Description |
---|---|
Descriptor<T> | A Descriptor<T> |
WithDateTime(Expression<Func<T, DateTime>>, DatePortion)
With date time.
Declaration
public Descriptor<T> WithDateTime(Expression<Func<T, DateTime>> property, DatePortion portion)
Parameters
Type | Name | Description |
---|---|---|
System.Linq.Expressions.Expression<System.Func<T, System.DateTime>> | property | The property. |
DatePortion | portion | The portion. |
Returns
Type | Description |
---|---|
Descriptor<T> | A Descriptor<T> |
WithDateTime(Expression<Func<T, DateTime>>, DateTimeFeature)
With date time.
Declaration
public Descriptor<T> WithDateTime(Expression<Func<T, DateTime>> property, DateTimeFeature features)
Parameters
Type | Name | Description |
---|---|---|
System.Linq.Expressions.Expression<System.Func<T, System.DateTime>> | property | The property. |
DateTimeFeature | features | The features. |
Returns
Type | Description |
---|---|
Descriptor<T> | A Descriptor<T> |
WithEnumerable(Expression<Func<T, IEnumerable>>, Int32)
With enumerable.
Declaration
public Descriptor<T> WithEnumerable(Expression<Func<T, IEnumerable>> property, int length)
Parameters
Type | Name | Description |
---|---|---|
System.Linq.Expressions.Expression<System.Func<T, System.Collections.IEnumerable>> | property | The property. |
System.Int32 | length | The length. |
Returns
Type | Description |
---|---|
Descriptor<T> | A Descriptor<T> |
WithGuid(Expression<Func<T, Guid>>)
With guid.
Declaration
public Descriptor<T> WithGuid(Expression<Func<T, Guid>> property)
Parameters
Type | Name | Description |
---|---|---|
System.Linq.Expressions.Expression<System.Func<T, System.Guid>> | property | The property. |
Returns
Type | Description |
---|---|
Descriptor<T> | A Descriptor<T> |
WithString(Expression<Func<T, String>>, StringSplitType, String, Boolean, String)
With string.
Declaration
public Descriptor<T> WithString(Expression<Func<T, string>> property, StringSplitType splitType, string separator = " ", bool asEnum = false, string exclusions = null)
Parameters
Type | Name | Description |
---|---|---|
System.Linq.Expressions.Expression<System.Func<T, System.String>> | property | The property. |
StringSplitType | splitType | Type of the split. |
System.String | separator | (Optional) the separator. |
System.Boolean | asEnum | (Optional) true to as enum. |
System.String | exclusions | (Optional) base 64 content string of the exclusions. |
Returns
Type | Description |
---|---|
Descriptor<T> | A Descriptor<T> |