Class CustomUnitDefinition
Provides additional metadata for a custom unit when creating a recognizer for Measurement
Inheritance
System.Object
CustomUnitDefinition
Implements
System.ICloneable
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Sdl.LanguagePlatform.Core.Tokenization
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 |
---|---|
System.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 |
---|---|
System.Object | A new object that is a deep copy of this instance. |
Implements
System.ICloneable