Table of Contents

Class Template<T1, T2, T3, T4, T5>

Namespace
Cuemon
Assembly
Cuemon.Core.dll

Represents a Template with five generic values.

public class Template<T1, T2, T3, T4, T5> : Template<T1, T2, T3, T4>

Type Parameters

T1

The type of the first parameter of this Template.

T2

The type of the second parameter of this Template.

T3

The type of the third parameter of this Template.

T4

The type of the fourth parameter of this Template.

T5

The type of the fifth parameter of this Template.

Inheritance
Object
Template<T1, T2>
Template<T1, T2, T3>
Template<T1, T2, T3, T4>
Template<T1, T2, T3, T4, T5>
Derived
Inherited Members

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

Template(T1, T2, T3, T4, T5)

Initializes a new instance of the Template<T1, T2, T3, T4, T5> class.

public Template(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5)

Parameters

arg1 T1

The value of the first parameter of this Template.

arg2 T2

The value of the second parameter of this Template.

arg3 T3

The value of the third parameter of this Template.

arg4 T4

The value of the fourth parameter of this Template.

arg5 T5

The value of the fifth parameter of this Template.

Properties

Arg5

Gets or sets the fifth parameter of this instance.

public T5 Arg5 { get; set; }

Property Value

T5

The fifth parameter of this instance.

Methods

Clone()

Creates a shallow copy of the current Template object.

public override Template Clone()

Returns

Template

A new Template that is a copy of this instance.

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.

public override object[] ToArray()

Returns

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.