Interface IGenericExtension
Interface for the generic extension
public interface IGenericExtension
- Extension Methods
Properties
ParentExtension
Parent extension. If set, provides instance object to current extension
IGenericExtension ParentExtension { get; set; }
Property Value
Methods
GetInstance()
Returns the extension object instance
object GetInstance()
Returns
- object
NewGenericProperty(object)
Creates a new property inferred from this extension
IGenericProperty NewGenericProperty(object obj)
Parameters
objobject
Returns
RegisterAsExtensionTo(Type)
Registers the extension as an extension to the given type
void RegisterAsExtensionTo(Type type)
Parameters
typeTypeTarget type
RegisterAsPropertyTo(Type, string)
Registers the extension as a property to the given type
void RegisterAsPropertyTo(Type type, string propertyName)
Parameters
typeTypeTarget type
propertyNamestringProperty name
SetInstance(object)
Sets the extension object instance
void SetInstance(object value)
Parameters
valueobjectNew instance value