File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -52,8 +52,8 @@ public Parameter this[string name] {
5252 /// </summary>
5353 /// <param name="array">The array whose elements are copied to the parameter list.</param>
5454 /// <returns>The parameter list corresponding to the specified array of positional parameters.</returns>
55- public static implicit operator ParameterCollection ( object ? [ ] array ) => [ .. array . Index ( ) . Select ( entry =>
56- entry . Item is Parameter parameter ? parameter : new Parameter ( $ "?{ entry . Index + 1 } ", entry . Item )
55+ public static implicit operator ParameterCollection ( object ? [ ] array ) => [ .. array . Select ( ( value , index ) =>
56+ value is Parameter parameter ? parameter : new Parameter ( $ "?{ index + 1 } ", value )
5757 ) ] ;
5858
5959 /// <summary>
You can’t perform that action at this time.
0 commit comments