Table of Contents

Class Template<T1>

Namespace
Cuemon
Assembly
Cuemon.Core.dll

Represents a Template with a single generic value.

public class Template<T1> : Template

Type Parameters

T1

The type of the first parameter of this Template.

Inheritance
Object
Template<T1>
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)

Initializes a new instance of the Template<T1> class.

public Template(T1 arg1)

Parameters

arg1 T1

The value of the parameter of this Template.

Properties

Arg1

Gets or sets the first parameter of this instance.

public T1 Arg1 { get; set; }

Property Value

T1

The first parameter of this instance.

IsEmpty

Gets a value indicating whether this Template is empty.

public override bool IsEmpty { get; }

Property Value

Boolean

true if this Template is empty; otherwise, false.

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.