Show / Hide Table of Contents

Class StringFeatureAttribute

Attribute for string feature.

Inheritance
System.Object
System.Attribute
NumlAttribute
FeatureAttribute
StringFeatureAttribute
Inherited Members
System.Attribute.Equals(System.Object)
System.Attribute.GetHashCode()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace:numl.Model
Assembly:numl.dll
Syntax
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
public class StringFeatureAttribute : FeatureAttribute

Constructors

View Source

StringFeatureAttribute()

Default constructor.

Declaration
public StringFeatureAttribute()
View Source

StringFeatureAttribute(StringSplitType, String, String)

Constructor.

Declaration
public StringFeatureAttribute(StringSplitType splitType, string separator = " ", string exclusions = null)
Parameters
Type Name Description
StringSplitType splitType

Type of the split.

System.String separator

(Optional) the separator.

System.String exclusions

(Optional) the exclusions.

View Source

StringFeatureAttribute(Boolean)

Constructor.

Declaration
public StringFeatureAttribute(bool asEnum)
Parameters
Type Name Description
System.Boolean asEnum

true to as enum.

Properties

View Source

AsEnum

Gets or sets a value indicating whether as enum.

Declaration
public bool AsEnum { get; set; }
Property Value
Type Description
System.Boolean

true if as enum, false if not.

View Source

ExclusionFile

Gets or sets the exclusion file as a base64 encoded string.

Declaration
public string ExclusionFile { get; set; }
Property Value
Type Description
System.String

The exclusion file.

View Source

Separator

Gets or sets the separator.

Declaration
public string Separator { get; set; }
Property Value
Type Description
System.String

The separator.

View Source

SplitType

Gets or sets the type of the split.

Declaration
public StringSplitType SplitType { get; set; }
Property Value
Type Description
StringSplitType

The type of the split.

Methods

View Source

GenerateProperty(PropertyInfo)

Generates a property.

Declaration
public override Property GenerateProperty(PropertyInfo property)
Parameters
Type Name Description
System.Reflection.PropertyInfo property

The property.

Returns
Type Description
Property

The property.

Overrides
NumlAttribute.GenerateProperty(PropertyInfo)
Exceptions
Type Condition
System.InvalidOperationException

Thrown when the requested operation is invalid.

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