Show / Hide Table of Contents

Class Descriptor<T>

Class Descriptor.

Inheritance
System.Object
Descriptor
Descriptor<T>
Inherited Members
Descriptor.Name
Descriptor.Features
Descriptor.Label
Descriptor.Item[Int32]
Descriptor.Item[String]
Descriptor.GetColumns()
Descriptor.VectorLength
Descriptor.Type
Descriptor.At(Int32)
Descriptor.GetValue(Object, Property)
Descriptor.ColumnAt(Int32)
Descriptor.Convert(Object)
Descriptor.Convert(Object, Boolean)
Descriptor.Convert(IEnumerable<Object>, Boolean)
Descriptor.ToExamples(IEnumerable<Object>)
Descriptor.ToMatrix(IEnumerable<Object>)
Descriptor.ToVector(Object)
Descriptor.ToString()
Descriptor.Create<T>()
Descriptor.Create(Type)
Descriptor.New()
Descriptor.New(String)
Descriptor.New(Type)
Descriptor.For<T>()
Descriptor.For<T>(String)
Descriptor.Load(Stream)
Descriptor.With(String)
Descriptor.Learn(String)
Descriptor.Equals(Object)
Descriptor.GetHashCode()
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 Source

Descriptor()

Initializes a new instance of the Descriptor class.

Declaration
public Descriptor()

Methods

View Source

Learn(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>

View Source

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>

View Source

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>

View Source

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>

View Source

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>

View Source

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>

View Source

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>

  • View Source
©2017 — Seth Juarez
numl v0.9.20-beta
MIT License
docs by docfx