For() public static method

public static For ( IEnumerable values ) : StoryTeller.Model.Option[]
values IEnumerable
return StoryTeller.Model.Option[]
Example #1
0
 private void selectEditor(Type type)
 {
     if (type == typeof(bool))
     {
         editor       = "boolean";
         DefaultValue = false.ToString();
     }
     else if (type.GetTypeInfo().IsEnum)
     {
         editor  = "select";
         options = Option.For(Enum.GetNames(type));
     }
 }