Class ExtensiblePropertyDescriptor<T>
Provides consistent accessors for an extended property
Inheritance
Namespace: Ubiquity.NET.Llvm
Assembly: Ubiquity.NET.Llvm.dll
Syntax
public class ExtensiblePropertyDescriptor<T>
Type Parameters
T
Type of values stored in the property |
Remarks
This class is used to describe a property stored in a class implementing IExtensiblePropertyContainer. Using a single, typically static, instance of this class to describe and access an extended property helps to encapsulate the type casting and property ID into a single place. Making calling code easier to comprehend and less prone to typographical errors that a compiler can't catch ahead of time.
Constructors
ExtensiblePropertyDescriptor(String) | Initializes a new instance of the ExtensiblePropertyDescriptor<T> class. |
Properties
Name | Gets the name of the property |
Methods
GetValueFrom(IExtensiblePropertyContainer) | Gets a value for the property from the container |
GetValueFrom(IExtensiblePropertyContainer, T) | Gets a value for the property from the container |
GetValueFrom(IExtensiblePropertyContainer, ExtensiblePropertyDescriptor<T>.LazyDefaultFactory) | Gets a value for the property from the container |
SetValueIn(IExtensiblePropertyContainer, T) | Sets the value of an extended property in a container |