Class DateTimeProperty
DateTime Property. Used as a feature expansion mechanism.
Inherited Members
Namespace:numl.Model
Assembly:numl.dll
Syntax
public class DateTimeProperty : Property
Constructors
View SourceDateTimeProperty()
Default constructor.
Declaration
public DateTimeProperty()
DateTimeProperty(DatePortion)
Constructor.
Declaration
public DateTimeProperty(DatePortion portion)
Parameters
Type | Name | Description |
---|---|---|
DatePortion | portion | The portion. |
DateTimeProperty(DateTimeFeature)
Constructor.
Declaration
public DateTimeProperty(DateTimeFeature features)
Parameters
Type | Name | Description |
---|---|---|
DateTimeFeature | features | The features. |
Properties
View SourceFeatures
Gets or sets the features.
Declaration
public DateTimeFeature Features { get; set; }
Property Value
Type | Description |
---|---|
DateTimeFeature | The features. |
Length
Length of property.
Declaration
public override int Length { get; }
Property Value
Type | Description |
---|---|
System.Int32 | The length. |
Overrides
Methods
View SourceConvert(Double)
Convert the numeric representation back to the original type.
Declaration
public override object Convert(double val)
Parameters
Type | Name | Description |
---|---|---|
System.Double | val | . |
Returns
Type | Description |
---|---|
System.Object | An object. |
Overrides
View SourceConvert(Object)
Convert an object to a list of numbers.
Declaration
public override IEnumerable<double> Convert(object o)
Parameters
Type | Name | Description |
---|---|---|
System.Object | o | Object. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.Double> | Lazy list of doubles. |
Overrides
Exceptions
Type | Condition |
---|---|
System.InvalidCastException | Thrown when an object cannot be cast to a required type. |
Equals(Object)
Equality test
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | object to compare |
Returns
Type | Description |
---|---|
System.Boolean | equality |
Overrides
View SourceGetColumns()
Retrieve the list of expanded columns. If there is a one-to-one correspondence between the type and its expansion it will return a single value/.
Declaration
public override IEnumerable<string> GetColumns()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.String> | An enumerator that allows foreach to be used to process the columns in this collection. |
Overrides
View SourceGetColumns(DateTimeFeature)
Retrieve the list of expanded columns. If there is a one-to-one correspondence between the type and its expansion it will return a single value/.
Declaration
public static IEnumerable<string> GetColumns(DateTimeFeature features)
Parameters
Type | Name | Description |
---|---|---|
DateTimeFeature | features | Features |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.String> |
GetFeatures(String[])
Gets DateTimeFeature enum from enumerated values
Declaration
public static DateTimeFeature GetFeatures(string[] features)
Parameters
Type | Name | Description |
---|---|---|
System.String[] | features | string collection of enum values |
Returns
Type | Description |
---|---|
DateTimeFeature | DateTimeFeatures |
GetHashCode()
Return hash
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | hash |