Class TemplateFactory<TTuple>
Provides a base-class for delegate based factories.
Inheritance
Namespace: Cuemon
Assembly: Cuemon.Core.dll
Syntax
public abstract class TemplateFactory<TTuple>
where TTuple : Template
Type Parameters
Name | Description |
---|---|
TTuple | The type of the n-tuple representation of a Template. |
Constructors
| Improve this DocTemplateFactory(TTuple, Boolean)
Initializes a new instance of the TemplateFactory<TTuple> class.
Declaration
protected TemplateFactory(TTuple tuple, bool hasDelegate)
Parameters
Type | Name | Description |
---|---|---|
TTuple | tuple | Then-tuple representation of a Template. |
System.Boolean | hasDelegate |
|
Properties
| Improve this DocDelegateInfo
Gets the method represented by the delegate.
Declaration
public virtual MethodInfo DelegateInfo { get; protected set; }
Property Value
Type | Description |
---|---|
System.Reflection.MethodInfo | A System.Reflection.MethodInfo describing the method represented by the delegate. |
GenericArguments
Gets a n-tuple representation of a Template that represents the generic arguments passed to this instance.
Declaration
public TTuple GenericArguments { get; }
Property Value
Type | Description |
---|---|
TTuple | The n-tuple representation of a Template that represents the generic arguments passed to this instance. |
HasDelegate
Gets a value indicating whether this instance has an assigned delegate.
Declaration
public virtual bool HasDelegate { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Methods
| Improve this DocThrowIfNoValidDelegate(Boolean)
Validates and throws an System.InvalidOperationException if this instance has no valid delegate.
Declaration
protected void ThrowIfNoValidDelegate(bool delegateIsNull)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | delegateIsNull | The value of a condition that can be either |
ToString()
Returns a System.String that represents this instance.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A System.String that represents this instance. |