Skip to content

Commit 8f99907

Browse files
committed
Append method extension removed
1 parent e26c4d0 commit 8f99907

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

src/ValidationRules/Extensions/Extensions.cs

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -80,22 +80,6 @@ public static IValidationRule<T> WithMessage<T>(this IValidationRule<T> rule, st
8080
return rule;
8181
}
8282

83-
/// <summary>
84-
/// We can use Linq's Concat() method to concatanate elements of the two input sequences.
85-
/// </summary>
86-
/// <typeparam name="T"></typeparam>
87-
/// <param name="array"></param>
88-
/// <param name="item"></param>
89-
/// <returns></returns>
90-
public static T[] Append<T>(this T[] array, T item)
91-
{
92-
if (array == null)
93-
{
94-
return new T[] { item };
95-
}
96-
return array.Concat(new T[] { item }).ToArray();
97-
}
98-
9983
public static IValidationRule<T> WithMessage<T>(this IValidationRule<T> rule, Func<string> messageProvider)
10084
{
10185
var message = messageProvider();

0 commit comments

Comments
 (0)