C# Class Faker.Lorem

A collection of Random sentences/words/paragraphs etc. related resources.
Exibir arquivo Open project: AdmiringWorm/Faker.NET.Portable Class Usage Examples

Public Methods

Method Description
Characters ( int charCount = 255 ) : string

Generates random characters with the specified character count.

Paragraph ( ) : string

Gets a random paragraph.

Paragraph ( int minSentenceCount ) : string

Gets a random paragraph.

Paragraphs ( int paragraphCount ) : IEnumerable

Gets a collection of random paragraphs.

Sentence ( ) : string

Gets a random sentence.

Sentence ( int minWordCount ) : string

Gets a random sentence.

Sentences ( int sentenceCount ) : IEnumerable

Gets a collection of random sentences.

Words ( int count ) : IEnumerable

Gets the specified count of random words.

Method Details

Characters() public static method

Generates random characters with the specified character count.
/// Character count must be more than zero. ///
public static Characters ( int charCount = 255 ) : string
charCount int The character count.
return string

Paragraph() public static method

Gets a random paragraph.
public static Paragraph ( ) : string
return string

Paragraph() public static method

Gets a random paragraph.
/// Minimum sentence count must be greater than zero. ///
public static Paragraph ( int minSentenceCount ) : string
minSentenceCount int The minimum sentence count.
return string

Paragraphs() public static method

Gets a collection of random paragraphs.
/// Paragraph Count must be greater than zero ///
public static Paragraphs ( int paragraphCount ) : IEnumerable
paragraphCount int The paragraph count.
return IEnumerable

Sentence() public static method

Gets a random sentence.
public static Sentence ( ) : string
return string

Sentence() public static method

Gets a random sentence.
/// Minimum word count must be greater than zero ///
public static Sentence ( int minWordCount ) : string
minWordCount int The minimum word count.
return string

Sentences() public static method

Gets a collection of random sentences.
/// Sentence count must be greater than zero ///
public static Sentences ( int sentenceCount ) : IEnumerable
sentenceCount int The sentence count.
return IEnumerable

Words() public static method

Gets the specified count of random words.
Count must be greater than zero
public static Words ( int count ) : IEnumerable
count int The count of random words.
return IEnumerable