private static Matches ( ModalIf threshold ) : IEnumerable |
||
threshold | ModalIf | |
Результат | IEnumerable |
private static IEnumerable<string> Matches(ModalIf threshold)
{
switch (threshold)
{
case ModalIf.All:
return new string[] { "" /*will match anything*/};
case ModalIf.Beta:
return new string[] { "developer", "alpha", "beta" };
case ModalIf.Alpha:
return new string[] { "developer", "alpha" };
default:
return new string[] { };
}
}