Class StringFeatureAttribute
Attribute for string feature.
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 SourceStringFeatureAttribute()
Default constructor.
Declaration
public StringFeatureAttribute()
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. |
StringFeatureAttribute(Boolean)
Constructor.
Declaration
public StringFeatureAttribute(bool asEnum)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | asEnum | true to as enum. |
Properties
View SourceAsEnum
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. |
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. |
Separator
Gets or sets the separator.
Declaration
public string Separator { get; set; }
Property Value
Type | Description |
---|---|
System.String | The separator. |
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 SourceGenerateProperty(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
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | Thrown when the requested operation is invalid. |