C# Class PetStore.Importer.RandomGenerator

Inheritance: IRandomGenerator
Afficher le fichier Open project: TelerikAcademy/Databases

Méthodes publiques

Méthode Description
RandomDateTime ( System.DateTime after = null, System.DateTime before = null ) : System.DateTime
RandomNumber ( int min, int max = int.MaxValue/2 ) : int
RandomString ( int minLength, int maxLength = int.MaxValue/2 ) : string

Private Methods

Méthode Description
RandomGenerator ( ) : System

Method Details

RandomDateTime() public static méthode

public static RandomDateTime ( System.DateTime after = null, System.DateTime before = null ) : System.DateTime
after System.DateTime
before System.DateTime
Résultat System.DateTime

RandomNumber() public static méthode

public static RandomNumber ( int min, int max = int.MaxValue/2 ) : int
min int
max int
Résultat int

RandomString() public static méthode

public static RandomString ( int minLength, int maxLength = int.MaxValue/2 ) : string
minLength int
maxLength int
Résultat string