Show / Hide Table of Contents

    Class Template<T1>

    Represents a Template with a single generic value.

    Inheritance
    System.Object
    Template
    Template<T1>
    Template<T1, T2>
    Inherited Members
    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

    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

    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

    IsEmpty

    Gets a value indicating whether this Template is empty.

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

    true if this Template is empty; otherwise, false.

    Overrides
    Template.IsEmpty

    Methods

    | Improve this Doc

    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

    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.

    Overrides
    Template.ToArray()

    Extension Methods

    ConverterExtensions.ParseWith<TSource, TResult>(TSource, Func<TSource, TResult>)
    ConverterExtensions.ParseWith<TSource, T, TResult>(TSource, Func<TSource, T, TResult>, T)
    ConverterExtensions.ParseWith<TSource, T1, T2, TResult>(TSource, Func<TSource, T1, T2, TResult>, T1, T2)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, TResult>(TSource, Func<TSource, T1, T2, T3, TResult>, T1, T2, T3)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, TResult>(TSource, Func<TSource, T1, T2, T3, T4, TResult>, T1, T2, T3, T4)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, TResult>, T1, T2, T3, T4, T5)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, T6, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, T6, TResult>, T1, T2, T3, T4, T5, T6)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, T6, T7, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, T6, T7, TResult>, T1, T2, T3, T4, T5, T6, T7)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, T6, T7, T8, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, TResult>, T1, T2, T3, T4, T5, T6, T7, T8)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>, T1, T2, T3, T4, T5, T6, T7, T8, T9)
    ConverterExtensions.As<TResult>(Object)
    ConverterExtensions.As<TResult>(Object, TResult)
    ConverterExtensions.As<TResult>(Object, TResult, IFormatProvider)
    DelegateUtilityExtensions.Wrap<TResult>(TResult)
    DelegateUtilityExtensions.DynamicWrap<TResult>(TResult)
    TweakerExtensions.Adjust<T>(T, Func<T, T>)
    TypeUtilityExtensions.Is<T>(Object)
    TypeUtilityExtensions.IsNot<T>(Object)
    TypeUtilityExtensions.IsNullable<T>(T)
    WrapperExtensions.UseWrapper<T>(T, Action<IDictionary<String, Object>>)
    WrapperExtensions.UseWrapper<T>(T, MemberInfo, Action<IDictionary<String, Object>>)
    EnumerableUtilityExtensions.Yield<TSource>(TSource)
    HashUtilityExtensions.ComputeHash(Object, Action<HashOptions>)
    HmacUtilityExtensions.ComputeKeyedHash(Object, Byte[], Action<KeyedHashOptions>)
    • Improve this Doc
    • View Source
    Back to top Copyright 2008-2018 Weubphoria. All rights reserved.
    Generated by DocFX