public static IEnumerable <StatementParameter> GetParameterEnumerable(this StatementBuilder stmt) { var max = stmt.SQLParameterCount; for (var i = 0; i < max; ++i) { yield return(stmt.GetParameterInfo(i)); } }