C# Class Foundation.Server.Infrastructure.Helpers.Strings

Class used for operations with strings.
ファイルを表示 Open project: NVentimiglia/Unity3d-Foundation

Public Properties

Property Type Description
random System.Random

Public Methods

Method Description
GenerateId ( int size ) : string

Generates an id.

RandomDate ( int daysback ) : System.DateTime

Generates an id.

RandomDecimal ( ) : double

Randoms the number.

RandomEmail ( ) : string
RandomNumber ( int min, int max ) : int

Randoms the number.

RandomPhone ( ) : string
RandomString ( int size ) : string

Randoms the string.

RandomUrl ( ) : string

Method Details

GenerateId() public static method

Generates an id.
public static GenerateId ( int size ) : string
size int
return string

RandomDate() public static method

Generates an id.
public static RandomDate ( int daysback ) : System.DateTime
daysback int
return System.DateTime

RandomDecimal() public static method

Randoms the number.
public static RandomDecimal ( ) : double
return double

RandomEmail() public static method

public static RandomEmail ( ) : string
return string

RandomNumber() public static method

Randoms the number.
public static RandomNumber ( int min, int max ) : int
min int The min.
max int The max.
return int

RandomPhone() public static method

public static RandomPhone ( ) : string
return string

RandomString() public static method

Randoms the string.
public static RandomString ( int size ) : string
size int The size.
return string

RandomUrl() public static method

public static RandomUrl ( ) : string
return string

Property Details

random public_oe static_oe property

public static Random,System random
return System.Random