C# Класс FakeO.Distinct

Creates distinct values, not really random. Within the same AppDomain, the same 2 values shouldnt be repeated. Useful for objects that need unique IDs.
Показать файл Открыть проект

Открытые методы

Метод Описание
Guid ( ) : System.Guid

Creates a new Guid

Number ( ) : int

Returns a distinct number. The numbers run up in sequence, starting at 1.

String ( ) : string

Returns a 32-character unique string This is actually just a Guid.ToString("N")

Описание методов

Guid() публичный статический Метод

Creates a new Guid
public static Guid ( ) : System.Guid
Результат System.Guid

Number() публичный статический Метод

Returns a distinct number. The numbers run up in sequence, starting at 1.
public static Number ( ) : int
Результат int

String() публичный статический Метод

Returns a 32-character unique string This is actually just a Guid.ToString("N")
public static String ( ) : string
Результат string