|
using System;
namespace TypedUnits
{
/// <summary>
/// Attribute to mark classes having static unit fields to be registered
/// by the UnitManager's RegisterUnits method.
/// </summary>
/// <see cref="UnitManager.RegisterUnits(System.Reflection.Assembly)"/>
[AttributeUsage(AttributeTargets.Class)]
public class UnitDefinitionClassAttribute : Attribute
{
}
/// <summary>
/// Attribute to mark classes having static methods that register
/// conversion functions. The UnitConvert class uses this attribute to
/// identify classes with unit conversion methods in its RegisterConversions
/// method.
/// </summary>
/// <see cref="UnitManager.RegisterConversions(System.Reflection.Assembly)"/>
[AttributeUsage(AttributeTargets.Class)]
public class UnitConversionClassAttribute : Attribute
{
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.