Craig's Utility Library  4.0 Beta
Utilities.Random.ContactInfoGenerators.EmailAddressGenerator Class Reference

Generates a random email address More...

Inheritance diagram for Utilities.Random.ContactInfoGenerators.EmailAddressGenerator:
Utilities.Random.BaseClasses.GeneratorAttributeBase Utilities.Random.Interfaces.IGenerator< string > Utilities.Random.Interfaces.IGenerator< T >

Public Member Functions

 EmailAddressGenerator (bool CommonEndings=true)
 Constructor More...
 
string Next (System.Random Rand)
 Generates a random value of the specified type More...
 
string Next (System.Random Rand, string Min, string 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< string >
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...
 

Properties

virtual bool CommonEndings [get]
 Should common domain name endings be used? 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...
 

Additional Inherited Members

- Protected Member Functions inherited from Utilities.Random.BaseClasses.GeneratorAttributeBase
 GeneratorAttributeBase (object Min, object Max)
 Constructor More...
 

Detailed Description

Generates a random email address

Definition at line 31 of file EmailAddressGenerator.cs.

Constructor & Destructor Documentation

Utilities.Random.ContactInfoGenerators.EmailAddressGenerator.EmailAddressGenerator ( bool  CommonEndings = true)

Constructor

Parameters
CommonEndingsCommon endings to domain names should be used (.com,.org,.net,etc.)

Definition at line 45 of file EmailAddressGenerator.cs.

Member Function Documentation

string Utilities.Random.ContactInfoGenerators.EmailAddressGenerator.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 61 of file EmailAddressGenerator.cs.

string Utilities.Random.ContactInfoGenerators.EmailAddressGenerator.Next ( System.Random  Rand,
string  Min,
string  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 87 of file EmailAddressGenerator.cs.

override object Utilities.Random.ContactInfoGenerators.EmailAddressGenerator.NextObj ( System.Random  Rand)
virtual

Generates next object

Parameters
RandRandom number generator
Returns
The next object

Implements Utilities.Random.BaseClasses.GeneratorAttributeBase.

Definition at line 97 of file EmailAddressGenerator.cs.

Property Documentation

virtual bool Utilities.Random.ContactInfoGenerators.EmailAddressGenerator.CommonEndings
get

Should common domain name endings be used?

Definition at line 54 of file EmailAddressGenerator.cs.


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