Show / Hide Table of Contents

Class Template<T1>

Represents a Template with a single generic value.

Inheritance
Object
Template
Template<T1>
Template<T1, T2>
Inherited Members
Template.CreateZero()
Template.CreateOne<T>(T)
Template.CreateTwo<T1, T2>(T1, T2)
Template.CreateThree<T1, T2, T3>(T1, T2, T3)
Template.CreateFour<T1, T2, T3, T4>(T1, T2, T3, T4)
Template.CreateFive<T1, T2, T3, T4, T5>(T1, T2, T3, T4, T5)
Template.CreateSix<T1, T2, T3, T4, T5, T6>(T1, T2, T3, T4, T5, T6)
Template.CreateSeven<T1, T2, T3, T4, T5, T6, T7>(T1, T2, T3, T4, T5, T6, T7)
Template.CreateEight<T1, T2, T3, T4, T5, T6, T7, T8>(T1, T2, T3, T4, T5, T6, T7, T8)
Template.CreateNine<T1, T2, T3, T4, T5, T6, T7, T8, T9>(T1, T2, T3, T4, T5, T6, T7, T8, T9)
Template.CreateTen<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)
Template.CreateEleven<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)
Template.CreateTwelve<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)
Template.CreateThirteen<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13)
Template.CreateFourteen<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14)
Template.CreateFifteen<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)
Template.CreateSixteen<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16>(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16)
Template.CreateSeventeen<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17>(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17)
Template.CreateEighteen<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18>(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18)
Template.CreateNineteen<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19>(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19)
Template.CreateTwenty<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20>(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20)
Template.ToArray(Object[])
Template.ToString()
Namespace: Cuemon
Assembly: Cuemon.Core.dll
Syntax
public class Template<T1> : Template
Type Parameters
Name Description
T1

The type of the first 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 Doc View Source

Template(T1)

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

Declaration
public Template(T1 arg1)
Parameters
Type Name Description
T1 arg1

The value of the parameter of this Template.

Properties

| Improve this Doc View Source

Arg1

Gets or sets the first parameter of this instance.

Declaration
public T1 Arg1 { get; set; }
Property Value
Type Description
T1

The first parameter of this instance.

| Improve this Doc View Source

IsEmpty

Gets a value indicating whether this Template is empty.

Declaration
public override bool IsEmpty { get; }
Property Value
Type Description
Boolean

true if this Template is empty; otherwise, false.

Overrides
Template.IsEmpty

Methods

| Improve this Doc View Source

Clone()

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
Template.Clone()
Remarks

When thread safety is required this is the method to invoke.

| Improve this Doc View Source

ToArray()

Returns an array of objects that represent the arguments passed to this instance.

Declaration
public override object[] ToArray()
Returns
Type Description
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.

Overrides
Template.ToArray()
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright 2008-2022 Geekle. All rights reserved. Code with passion and love; deploy with confidence. 👨‍💻️🔥❤️🚀😎
Generated by DocFX