/// <summary> /// Parsers a command provider by generating the underlying command and disposing it /// afterwards. /// </summary> public virtual string OnParseCoreCommandProvider(ICoreCommandProvider obj, IParameterCollection pc, bool nulls) { var cmd = obj.GenerateCoreCommand(); if (cmd == null) { return(string.Empty); } var str = OnParseCommand(cmd, pc, nulls); cmd.Dispose(); return(str); }
/// <summary> /// Parsers a command provider by generating the underlying command and disposing it /// afterwards. /// </summary> public virtual string OnParseCoreCommandProvider(ICoreCommandProvider obj, IParameterCollection pc, bool nulls) { var cmd = obj.GenerateCoreCommand(); if (cmd == null) return string.Empty; var str = OnParseCommand(cmd, pc, nulls); cmd.Dispose(); return str; }