Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mcs/class/System.ComponentModel.Composition/src/Composition.Initialization/Microsoft/Internal/Requires.cs')
-rw-r--r--mcs/class/System.ComponentModel.Composition/src/Composition.Initialization/Microsoft/Internal/Requires.cs39
1 files changed, 0 insertions, 39 deletions
diff --git a/mcs/class/System.ComponentModel.Composition/src/Composition.Initialization/Microsoft/Internal/Requires.cs b/mcs/class/System.ComponentModel.Composition/src/Composition.Initialization/Microsoft/Internal/Requires.cs
deleted file mode 100644
index c7c2d31c1e2..00000000000
--- a/mcs/class/System.ComponentModel.Composition/src/Composition.Initialization/Microsoft/Internal/Requires.cs
+++ /dev/null
@@ -1,39 +0,0 @@
-// -----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// -----------------------------------------------------------------------
-using System;
-using System.Collections;
-using System.Collections.Generic;
-using System.Diagnostics;
-using System.Linq;
-using System.Globalization;
-using System.Reflection;
-using System.ComponentModel.Composition;
-using System.Text;
-
-namespace Microsoft.Internal
-{
- internal static class Requires
- {
- [DebuggerStepThrough]
- public static void NotNull<T>(T value, string parameterName)
- where T : class
- {
- if (value == null)
- {
- throw new ArgumentNullException(parameterName);
- }
- }
-
- [DebuggerStepThrough]
- public static void NotNullOrEmpty(string value, string parameterName)
- {
- NotNull(value, parameterName);
-
- if (value.Length == 0)
- {
- throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.ArgumentException_EmptyString, parameterName), parameterName);
- }
- }
- }
-}