Class UnitDefinitionSet
Manages the collection of known unit definitions
Inheritance
System.Object
UnitDefinitionSet
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.Core.Globalization.UnitMetadata
Assembly: Sdl.Core.Globalization.dll
Syntax
public class UnitDefinitionSet
Constructors
UnitDefinitionSet()
Declaration
public UnitDefinitionSet()
Properties
UnitDefinitions
The available unit definitions
Declaration
public List<UnitDefinition> UnitDefinitions { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<UnitDefinition> |
Methods
GetDefinitionByKey(String)
Returns the UnitDefinition that has the key provided, or null if not found
Declaration
public UnitDefinition GetDefinitionByKey(string unitKey)
Parameters
Type | Name | Description |
---|---|---|
System.String | unitKey |
Returns
Type | Description |
---|---|
UnitDefinition |