Class Template<T1, T2>
Represents a Template with two generic values.
Namespace: Cuemon
Assembly: Cuemon.Core.dll
Syntax
public class Template<T1, T2> : Template<T1>
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of this Template. |
T2 | The type of the second parameter of this Template. |
Remarks
Inspired by Tuple objects, Template, was chosen because of the naming conflict in newer version of the .NET Framework. The name, Template, was inspired by the Variadic Template in C++.
Constructors
| Improve this DocTemplate(T1, T2)
Initializes a new instance of the Template<T1, T2> class.
Declaration
public Template(T1 arg1, T2 arg2)
Parameters
Type | Name | Description |
---|---|---|
T1 | arg1 | The value of the first parameter of this Template. |
T2 | arg2 | The value of the second parameter of this Template. |
Properties
| Improve this DocArg2
Gets or sets the second parameter of this instance.
Declaration
public T2 Arg2 { get; set; }
Property Value
Type | Description |
---|---|
T2 | The second parameter of this instance. |
Methods
| Improve this DocClone()
Creates a shallow copy of the current Template object.
Declaration
public override Template Clone()
Returns
Type | Description |
---|---|
Template | A new Template that is a copy of this instance. |
Overrides
Remarks
When thread safety is required this is the method to invoke.
ToArray()
Returns an array of objects that represent the arguments passed to this instance.
Declaration
public override object[] ToArray()
Returns
Type | Description |
---|---|
System.Object[] | An array of objects that represent the arguments passed to this instance. Returns an empty array if the current instance was constructed with no generic arguments. |