public NakedFunction(string name, NakedFunctionHandler handler, bool cacheable = false) { if (name.ContainsSpace()) { throw new CannotContainsSpacesException("Naked function name"); } Name = name; Handler = handler; Cacheable = cacheable; }
public static ParseOption AddNakedFunction(this ParseOption option, string name, NakedFunctionHandler handler, bool cacheable = false) => option.AddNakedFunction(new NakedFunction(name, handler, cacheable));