示例#1
0
 public IMacro GetMacro(string name, int paramNum)
 {
     return(BuiltInMacros.ContainsKey(name) && BuiltInMacros[name].ValidNumParams(paramNum) ? BuiltInMacros[name] : Macros[name][paramNum]);
 }
示例#2
0
 public bool ContainsName(string name)
 {
     return(BuiltInMacros.ContainsKey(name) || Macros.ContainsKey(name));
 }
示例#3
0
 public bool HasMacro(string name, int paramNum)
 {
     return(BuiltInMacros.ContainsKey(name) && BuiltInMacros[name].ValidNumParams(paramNum) || Macros.ContainsKey(name) && Macros[name].ContainsKey(paramNum));
 }