Table of Contents

Class IdName

Namespace
VpnHood.Net.Toolkit.Generics
Assembly
VpnHood.Net.Toolkit.dll

Provides the means to create an IdName<T> with its type inferred.

public class IdName
Inheritance
IdName
Inherited Members

Methods

Create<T>(T, string)

Creates an ID with its display name.

public static IdName<T> Create<T>(T id, string name)

Parameters

id T

The ID.

name string

The name.

Returns

IdName<T>

A new IdName<T>.

Type Parameters

T

The type of the ID.