Bring back System.Reflection.ICustomTypeProvider (dotnet/corefx#30727)
authorAtsushi Kanamori <AtsushiKan@users.noreply.github.com>
Thu, 28 Jun 2018 16:20:29 +0000 (09:20 -0700)
committerStephen Toub <stoub@microsoft.com>
Thu, 28 Jun 2018 16:20:29 +0000 (12:20 -0400)
Fix https://github.com/dotnet/corefx/issues/29958

Commit migrated from https://github.com/dotnet/corefx/commit/66567f218133234558098feb6d109bc9aa9f8273

src/libraries/System.ObjectModel/ref/System.ObjectModel.cs
src/libraries/System.ObjectModel/src/System.ObjectModel.csproj
src/libraries/System.ObjectModel/src/System/Reflection/ICustomTypeProvider.cs [new file with mode: 0644]

index 8368d90..fbc9004 100644 (file)
@@ -207,6 +207,13 @@ namespace System.ComponentModel
         public override int GetHashCode() { throw null; }
     }
 }
+namespace System.Reflection
+{
+    public interface ICustomTypeProvider
+    {
+        Type GetCustomType();
+    }
+}
 namespace System.Windows.Input
 {
     public partial interface ICommand
index 78f67d2..8246e23 100644 (file)
@@ -27,6 +27,7 @@
     <Compile Include="System\ComponentModel\PropertyChangingEventArgs.cs" />
     <Compile Include="System\ComponentModel\PropertyChangingEventHandler.cs" />
     <Compile Include="System\ComponentModel\TypeConverterAttribute.cs" />
+    <Compile Include="System\Reflection\ICustomTypeProvider.cs" />
     <Compile Include="System\Windows\Markup\ValueSerializerAttribute.cs" />
     <Compile Include="System\Windows\Input\ICommand.cs" />
   </ItemGroup>
@@ -39,4 +40,4 @@
     <Reference Include="System.Threading" />
   </ItemGroup>
   <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
-</Project>
\ No newline at end of file
+</Project>
diff --git a/src/libraries/System.ObjectModel/src/System/Reflection/ICustomTypeProvider.cs b/src/libraries/System.ObjectModel/src/System/Reflection/ICustomTypeProvider.cs
new file mode 100644 (file)
index 0000000..b38c9f6
--- /dev/null
@@ -0,0 +1,12 @@
+// 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.Reflection
+{
+    public interface ICustomTypeProvider
+    {
+        Type GetCustomType();
+    }
+}
+