public static string AsScriptTypeName(DekiScriptType type) { return type.ToString().ToLowerInvariant(); }
//--- Class Methods --- protected static string MakeMessage(DekiScriptType currentType, DekiScriptType newType) { return string.Format("return value could not convert from '{0}' to '{1}'", currentType.ToString().ToLowerInvariant(), newType.ToString().ToLowerInvariant()); }
//--- Class Methods --- private static string MakeMessage(DekiScriptType badType, DekiScriptType[] expectedTypes) { string[] types = Array.ConvertAll(expectedTypes, type => type.ToString().ToLowerInvariant()); return string.Format("{0} is not valid; expected {1}", badType.ToString().ToLowerInvariant(), string.Join(" or ", types)); }
//--- Class Methods --- protected static string MakeMessage(DekiScriptParameter parameter, DekiScriptType sourceType) { return string.Format("parameter '{2}' could not convert from '{0}' to '{1}'", sourceType.ToString().ToLowerInvariant(), parameter.ScriptType.ToString().ToLowerInvariant(), parameter.Name); }
//--- Class Methods --- private static string MakeMessage(DekiScriptType badType, DekiScriptType[] expectedTypes) { string[] types = Array.ConvertAll(expectedTypes, type => type.ToString().ToLowerInvariant()); return(string.Format("{0} is not valid; expected {1}", badType.ToString().ToLowerInvariant(), string.Join(" or ", types))); }
//--- Class Methods --- protected static string MakeMessage(DekiScriptType currentType, DekiScriptType newType) { return(string.Format("return value could not convert from '{0}' to '{1}'", currentType.ToString().ToLowerInvariant(), newType.ToString().ToLowerInvariant())); }
//--- Class Methods --- protected static string MakeMessage(DekiScriptParameter parameter, DekiScriptType sourceType) { return(string.Format("parameter '{2}' could not convert from '{0}' to '{1}'", sourceType.ToString().ToLowerInvariant(), parameter.ScriptType.ToString().ToLowerInvariant(), parameter.Name)); }
public static string AsScriptTypeName(DekiScriptType type) { return(type.ToString().ToLowerInvariant()); }