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.
Exibir arquivo Open project: rally25rs/FakeO

Public Methods

Method 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 method

Creates a new Guid
public static Guid ( ) : System.Guid
return System.Guid

Number() public static method

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

String() public static method

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