mirror of
https://github.com/tonytins/Lorem.NET.git
synced 2025-07-07 15:20:26 -04:00
made Lorem partial class - updated readme
This commit is contained in:
parent
246072a200
commit
c7e71b13de
10 changed files with 37 additions and 3 deletions
19
readme.html
19
readme.html
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue