public static string GetOptionType(SDDL.Type type, string ex) { if (type == SDDL.Type.String || type == SDDL.Type.Other) { return(GetType(type, ex)); } return(GetType(type, ex) + "?"); }
public static string GetType(SDDL.Type type, string ex) { switch (type) { case SDDL.Type.Bool: return("bool"); case SDDL.Type.Int: return("int"); case SDDL.Type.Float: return("double"); case SDDL.Type.String: return("string"); default: return(ex); } }