mirror of
https://github.com/tonytins/Lorem.NET.git
synced 2025-03-22 07:32:23 +00:00
improvements
This commit is contained in:
parent
7b654475d9
commit
7e27636870
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ namespace LoremNET
|
||||||
if (typeof(TEnum).IsEnum)
|
if (typeof(TEnum).IsEnum)
|
||||||
{
|
{
|
||||||
var v = System.Enum.GetValues(typeof(TEnum));
|
var v = System.Enum.GetValues(typeof(TEnum));
|
||||||
return (TEnum)v.GetValue(LoremNET.RandomHelper.Instance.Next(v.Length));
|
return (TEnum)v.GetValue(RandomHelper.Instance.Next(v.Length));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue