Skip to content

Commit 1b13e8f

Browse files
committed
Code optimization
1 parent a583475 commit 1b13e8f

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

src/Sql/ParameterCollection.cs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,7 @@ public ParameterCollection(): base() {}
1717
/// Creates a new parameter list that contains the elements copied from the specified collection.
1818
/// </summary>
1919
/// <param name="collection">The collection whose elements are copied to the parameter list.</param>
20-
public ParameterCollection(IEnumerable<Parameter> collection): base(collection) {}
21-
22-
/// <summary>
23-
/// Creates a new parameter list that contains the specified parameter.
24-
/// </summary>
25-
/// <param name="parameter">The parameter to add to the elements in the parameter list.</param>
26-
public ParameterCollection(Parameter parameter): this([parameter]) {}
20+
public ParameterCollection(params IEnumerable<Parameter> collection): base(collection) {}
2721

2822
/// <summary>
2923
/// Creates a new parameter list that contains the specified parameter.

0 commit comments

Comments
 (0)