Class CustomUnitDefinition
Provides additional metadata for a custom unit when creating a recognizer for Measurement
Inheritance
Object
CustomUnitDefinition
Implements
ICloneable
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: Sdl.LanguagePlatform.Core.Tokenization
Assembly: Sdl.LanguagePlatform.Core.dll
Syntax
public class CustomUnitDefinition : ICloneable
Constructors
CustomUnitDefinition()
Provides additional metadata for a custom unit when creating a recognizer for Measurement
Declaration
public CustomUnitDefinition()
Properties
CategoryName
If not null, the name of a category used to indicate when unit names differing between languages nevertheless refer to the same kind of quantity, where this is not already specified by translations for built-in units (Unit should be NoUnit)
Declaration
public string CategoryName { get; set; }
Property Value
Type | Description |
---|---|
String |
Unit
If not Unit.NoUnit, the built=in Unit for which this CustomUnitDefinition provides a language-specific string name (CategoryName should be null)
Declaration
public Unit Unit { get; set; }
Property Value
Type | Description |
---|---|
Unit |
Methods
Clone()
System.ICloneable.Clone()
Declaration
public object Clone()
Returns
Type | Description |
---|---|
Object | A new object that is a deep copy of this instance. |
Implements
System.ICloneable