Delete DefaultParameterValueAttribute after its move to Corelib
authorStephen Toub <stoub@microsoft.com>
Fri, 11 Jan 2019 17:21:38 +0000 (12:21 -0500)
committerStephen Toub <stoub@microsoft.com>
Sat, 12 Jan 2019 14:39:08 +0000 (09:39 -0500)
Commit migrated from https://github.com/dotnet/corefx/commit/7e2b7adc5cf469dd30cd77913e3585db33802815

src/libraries/System.Runtime.InteropServices/src/System.Runtime.InteropServices.csproj
src/libraries/System.Runtime.InteropServices/src/System/Runtime/InteropServices/DefaultParameterValueAttribute.cs [deleted file]

index 134b989..655d2e0 100644 (file)
@@ -22,7 +22,6 @@
     <Compile Include="System\Runtime\CompilerServices\Attributes.cs" />
     <Compile Include="System\Runtime\InteropServices\Attributes.cs" />
     <Compile Include="System\Runtime\InteropServices\ComAwareEventInfo.cs" />
-    <Compile Include="System\Runtime\InteropServices\DefaultParameterValueAttribute.cs" Condition="'$(TargetsAOT)' != 'true'" />
     <Compile Include="System\Runtime\InteropServices\HandleCollector.cs" Condition="'$(TargetsAOT)' != 'true'" />
     <Compile Include="System\Runtime\InteropServices\IMarshal.cs" />
     <Compile Include="System\Runtime\InteropServices\RuntimeEnvironment.cs" />
diff --git a/src/libraries/System.Runtime.InteropServices/src/System/Runtime/InteropServices/DefaultParameterValueAttribute.cs b/src/libraries/System.Runtime.InteropServices/src/System/Runtime/InteropServices/DefaultParameterValueAttribute.cs
deleted file mode 100644 (file)
index 160a961..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-// See the LICENSE file in the project root for more information.
-
-namespace System.Runtime.InteropServices
-{
-    //
-    // The DefaultParameterValueAttribute is used in C# to set 
-    // the default value for parameters when calling methods
-    // from other languages. This is particularly useful for 
-    // methods defined in COM interop interfaces.
-    //
-    [AttributeUsage(AttributeTargets.Parameter)]
-    public sealed class DefaultParameterValueAttribute : Attribute
-    {
-        public DefaultParameterValueAttribute(object value) => Value = value;
-
-        public object Value { get; }
-    }
-}