예제 #1
0
 public static string AsScriptTypeName(DekiScriptType type) {
     return type.ToString().ToLowerInvariant();
 }
예제 #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());
 }
예제 #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));
 }
예제 #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);
 }
예제 #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)));
 }
예제 #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()));
 }
예제 #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));
 }
예제 #8
0
 public static string AsScriptTypeName(DekiScriptType type)
 {
     return(type.ToString().ToLowerInvariant());
 }