C# Class SocialNetwork.ConsoleClient.Generator.RandomGenerator

This class is only used for generating the test files. It is not part of the solution to the task.
Afficher le fichier Open project: TelerikAcademy/Databases

Méthodes publiques

Méthode Description
RandomBool ( ) : bool
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

RandomBool() public static méthode

public static RandomBool ( ) : bool
Résultat bool

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