Search Results for

    Show / Hide Table of Contents

    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()

    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()

    Clone()

    Declaration
    public object Clone()
    Returns
    Type Description
    object

    A new object that is a deep copy of this instance.

    Implements

    ICloneable
    In this article
    • Constructors
      • CustomUnitDefinition()
    • Properties
      • CategoryName
      • Unit
    • Methods
      • Clone()
    • Implements
    Back to top Generated by DocFX