1
// -----------------------------------------------------------------------
2 // Copyright (c) Microsoft Corporation. All rights reserved.
3 // -----------------------------------------------------------------------
5 using System
.Collections
;
6 using System
.Collections
.Generic
;
7 using System
.Diagnostics
;
9 using System
.Globalization
;
10 using System
.Reflection
;
11 using System
.ComponentModel
.Composition
;
14 namespace Microsoft
.Internal
16 internal static class Requires
19 public static void NotNull
<T
>(T
value, string parameterName
)
24 throw new ArgumentNullException(parameterName
);
29 public static void NotNullOrEmpty(string value, string parameterName
)
31 NotNull(value, parameterName
);
33 if (value.Length
== 0)
35 throw new ArgumentException(string.Format(CultureInfo
.CurrentCulture
, Strings
.ArgumentException_EmptyString
, parameterName
), parameterName
);