mirror of
https://github.com/tonytins/Lorem.NET.git
synced 2025-07-09 16:20:38 -04:00
add example project
This commit is contained in:
parent
a6f239a1cb
commit
aafd06b07f
4 changed files with 125 additions and 2 deletions
24
Examples/Program.cs
Normal file
24
Examples/Program.cs
Normal file
|
@ -0,0 +1,24 @@
|
|||
using System;
|
||||
|
||||
namespace Examples
|
||||
{
|
||||
static class Program
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
Console.WriteLine($"Email: {LoremNET.Generate.Email()}");
|
||||
Console.WriteLine($"Chance: {LoremNET.Generate.Chance(1, 2)}");
|
||||
Console.WriteLine($"Words: {LoremNET.Generate.Words(5)}");
|
||||
|
||||
Console.WriteLine();
|
||||
Console.WriteLine("Change the source...");
|
||||
LoremNET.Source.UpdateSource("Alright stop collaborate and listen ice is back with my brand new invention something grabs a hold of me tightly flow like a harpoon daily and nightly will it ever stop yo I don't know turn off the lights and I'll glow");
|
||||
|
||||
Console.WriteLine($"Sentence: {LoremNET.Generate.Sentence(5, 25)}");
|
||||
|
||||
Console.WriteLine();
|
||||
Console.WriteLine("Press any key to exit...");
|
||||
Console.ReadKey();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue