You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -39,14 +41,16 @@ public static ImmutableArray<T> MustHaveMaximumLength<T>(
39
41
/// <param name="length">The maximum length the <see cref="ImmutableArray{T}" /> should have.</param>
40
42
/// <param name="exceptionFactory">The delegate that creates your custom exception. <paramref name="parameter" /> and <paramref name="length" /> are passed to this delegate.</param>
41
43
/// <exception cref="Exception">Your custom exception thrown when <paramref name="parameter" /> has more than the specified length.</exception>
44
+
/// <remarks>The default instance of <see cref="ImmutableArray{T}"/> will be treated as having length 0.</remarks>
$"{parameterName??"The immutable array"} must have at most a length of {length}, but it actually {(parameter.IsDefault?"has no length because it is the default instance":$"has a length of {parameter.Length}")}."
0 commit comments