コード例 #1
0
ファイル: DekiScriptLiteral.cs プロジェクト: heran/DekiWiki
 public static string AsScriptTypeName(DekiScriptType type) {
     return type.ToString().ToLowerInvariant();
 }
コード例 #2
0
ファイル: DekiScriptException.cs プロジェクト: heran/DekiWiki
 //--- 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
ファイル: DekiScriptException.cs プロジェクト: heran/DekiWiki
 //--- 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
ファイル: DekiScriptException.cs プロジェクト: heran/DekiWiki
 //--- 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());
 }