made Lorem partial class - updated readme

This commit is contained in:
dochoffiday 2014-08-20 00:10:24 -04:00
parent 246072a200
commit c7e71b13de
10 changed files with 37 additions and 3 deletions

View file

@ -51,5 +51,22 @@ string number = LoremNET.Lorem.Random(numbers);
<p>Lorem.NET includes a thread-safe System.Random instance.</p>
<p><code>csharp
int i = LoremNET.RandomHelper.Instance.Next(1, 2)
int i = LoremNET.RandomHelper.Instance.Next(1, 2);
</code></p>
<h3>Extending the Class</h3>
<p>If you want to extend the class to add more methods, go right ahead!</p>
<p><code>csharp
namespace LoremNET
{
public partial class Lorem
{
public static string Email(string domain)
{
return Email().Replace(".com", string.Format(".{0}", domain));
}
}
}
</code></p>