GenericProperty<PropertyType> Class |
Namespace: CMS.Base
public class GenericProperty<PropertyType> : GenericExtension<PropertyType>, IGenericProperty, IGenericExtension
The GenericProperty< PropertyType> type exposes the following members.
Name | Description | |
---|---|---|
GenericProperty<PropertyType>() |
Empty constructor, creates a property without a name, which expects that its parent property will be set
| |
GenericProperty<PropertyType>(String) |
Constructor
|
Name | Description | |
---|---|---|
Initializer |
Property initializer
| |
Instance |
Property value. Initializes the extension object if not available
(Inherited from GenericExtension<ExtensionType>.) | |
IsInitialized |
Returns true if the extension is initialized
(Inherited from GenericExtension<ExtensionType>.) | |
LazyInstance |
Lazy instance of the extension
(Inherited from GenericExtension<ExtensionType>.) | |
Name |
Property name
(Overrides GenericExtension<ExtensionType>.Name.) | |
ParentExtension |
Parent extension. If set, provides instance object to current extension
(Inherited from GenericExtension<ExtensionType>.) | |
ParentProperty |
Parent property. If set, provides value to current extension
| |
PropertyInitializer |
Property initializer
(Inherited from GenericExtension<ExtensionType>.) | |
Type |
Type of the property
| |
Value |
Property value
| |
ValueIsSingleton |
If true, the property ensures an object instance in it's value if null
|
Name | Description | |
---|---|---|
AsSingleton |
If set, the value of the object points to a singleton of this object
| |
GetInstance |
Gets the extension object instance
(Inherited from GenericExtension<ExtensionType>.) | |
GetValue |
Gets the property value for internal purposes
| |
Initialize |
Initializes the extension
(Inherited from GenericExtension<ExtensionType>.) | |
NewGenericProperty |
Creates a new property of the given type, initialized to the extension value
(Inherited from GenericExtension<ExtensionType>.) | |
NewProperty |
Creates a new property of the given type, initialized to the extension value
(Inherited from GenericExtension<ExtensionType>.) | |
NewValue |
Creates a new value of the given type
(Inherited from GenericExtension<ExtensionType>.) | |
RegisterAsExtensionTo |
Registers the extension as an extension to the given type
(Inherited from GenericExtension<ExtensionType>.) | |
RegisterAsPropertyTo |
Registers the extension as a property to the given type
(Inherited from GenericExtension<ExtensionType>.) | |
RegisterAsStaticPropertyTo |
Registers the extension as a property to the given type
| |
SetInstance |
Sets the extension object instance
(Inherited from GenericExtension<ExtensionType>.) | |
WithLazyInitialization(Func<Object, ExtensionType>) |
Sets up the lazy initialization over this property
(Inherited from GenericExtension<ExtensionType>.) | |
WithLazyInitialization(Func<PropertyType>) |
Sets up the lazy initialization over this property
|
Name | Description | |
---|---|---|
Implicit(GenericProperty<PropertyType> to PropertyType) |
Implicit conversion to extension type
|