C# Class 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.
Afficher le fichier Open project: rally25rs/FakeO

Méthodes publiques

Méthode Description
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")

Method Details

Guid() public static méthode

Creates a new Guid
public static Guid ( ) : System.Guid
Résultat System.Guid

Number() public static méthode

Returns a distinct number. The numbers run up in sequence, starting at 1.
public static Number ( ) : int
Résultat int

String() public static méthode

Returns a 32-character unique string This is actually just a Guid.ToString("N")
public static String ( ) : string
Résultat string