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

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