Craig's Utility Library  4.0 Beta
Utilities.Random.DefaultClasses.DateTimeGenerator Class Reference

Randomly generates DateTimes More...

Inheritance diagram for Utilities.Random.DefaultClasses.DateTimeGenerator:
Utilities.Random.BaseClasses.GeneratorAttributeBase Utilities.Random.Interfaces.IGenerator< DateTime > Utilities.Random.Interfaces.IGenerator< T >

Public Member Functions

 DateTimeGenerator ()
 Constructor More...
 
 DateTimeGenerator (string Min, string Max)
 Initializes a new instance of the DateTimeGenerator class. More...
 
DateTime Next (System.Random Rand)
 Generates a random value of the specified type More...
 
DateTime Next (System.Random Rand, DateTime Min, DateTime Max)
 Generates a random value of the specified type More...
 
override object NextObj (System.Random Rand)
 Generates next object More...
 
- Public Member Functions inherited from Utilities.Random.Interfaces.IGenerator< T >
Next (System.Random Rand, T Min, T Max)
 Generates a random value of the specified type More...
 
- Public Member Functions inherited from Utilities.Random.Interfaces.IGenerator< DateTime >
Next (System.Random Rand)
 Generates a random value of the specified type More...
 
Next (System.Random Rand, T Min, T Max)
 Generates a random value of the specified type More...
 
object NextObj (System.Random Rand)
 Generates a random value and returns it as an object More...
 

Additional Inherited Members

- Protected Member Functions inherited from Utilities.Random.BaseClasses.GeneratorAttributeBase
 GeneratorAttributeBase (object Min, object Max)
 Constructor More...
 
- Properties inherited from Utilities.Random.BaseClasses.GeneratorAttributeBase
virtual object Max [get, protected set]
 Maximum allowed More...
 
virtual object Min [get, protected set]
 Minimum allowed More...
 

Detailed Description

Randomly generates DateTimes

Definition at line 32 of file DateTimeGenerator.cs.

Constructor & Destructor Documentation

Utilities.Random.DefaultClasses.DateTimeGenerator.DateTimeGenerator ( )

Constructor

Definition at line 37 of file DateTimeGenerator.cs.

Utilities.Random.DefaultClasses.DateTimeGenerator.DateTimeGenerator ( string  Min,
string  Max 
)

Initializes a new instance of the DateTimeGenerator class.

Parameters
MinThe minimum.
MaxThe maximum.

Definition at line 47 of file DateTimeGenerator.cs.

Member Function Documentation

DateTime Utilities.Random.DefaultClasses.DateTimeGenerator.Next ( System.Random  Rand)

Generates a random value of the specified type

Parameters
RandRandom number generator that it can use
Returns
A randomly generated object of the specified type

Implements Utilities.Random.Interfaces.IGenerator< T >.

Definition at line 57 of file DateTimeGenerator.cs.

DateTime Utilities.Random.DefaultClasses.DateTimeGenerator.Next ( System.Random  Rand,
DateTime  Min,
DateTime  Max 
)

Generates a random value of the specified type

Parameters
RandRandom number generator that it can use
MinMinimum value (inclusive)
MaxMaximum value (inclusive)
Returns
A randomly generated object of the specified type

Definition at line 69 of file DateTimeGenerator.cs.

override object Utilities.Random.DefaultClasses.DateTimeGenerator.NextObj ( System.Random  Rand)
virtual

Generates next object

Parameters
RandRandom number generator
Returns
The next object

Implements Utilities.Random.BaseClasses.GeneratorAttributeBase.

Definition at line 81 of file DateTimeGenerator.cs.


The documentation for this class was generated from the following file: