Beispiel #1
0
 public static string AsScriptTypeName(DekiScriptType type) {
     return type.ToString().ToLowerInvariant();
 }
Beispiel #2
0
 //--- 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());
 }
Beispiel #3
0
 //--- 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));
 }
Beispiel #4
0
 //--- 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);
 }
Beispiel #5
0
 //--- 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)));
 }
Beispiel #6
0
 //--- 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()));
 }
Beispiel #7
0
 //--- 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));
 }
Beispiel #8
0
 public static string AsScriptTypeName(DekiScriptType type)
 {
     return(type.ToString().ToLowerInvariant());
 }