Class CustomUnitDefinition
Provides additional metadata for a custom unit when creating a recognizer for Measurement
Implements
Inherited Members
Namespace: SdlSdl.LanguagePlatformCoreTokenization
Assembly: Sdl.LanguagePlatform.Core.dll
Syntax
public class CustomUnitDefinition : ICloneable
Constructors
CustomUnitDefinition()
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()
Declaration
public object Clone()
Returns
Type | Description |
---|---|
object | A new object that is a deep copy of this instance. |