diff options
author | Marek Safar <marek.safar@gmail.com> | 2018-09-19 15:19:22 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-19 15:19:22 +0300 |
commit | efd29b5cf854679349066e22ef9038b8cfe76d94 (patch) | |
tree | 2de750c1ac8a487d7f6d149592a6362ade6a5a77 /src/System.Private.CoreLib/src/System/Activator.cs | |
parent | f9124d69e41d42196510dd7234b2d53fed48ad4c (diff) | |
parent | 49f9ed0e66fc2d4cd682821396c6af5e80182048 (diff) |
Merge pull request #25 from ntherning/bump-corert
Bump to latest upstream
Diffstat (limited to 'src/System.Private.CoreLib/src/System/Activator.cs')
-rw-r--r-- | src/System.Private.CoreLib/src/System/Activator.cs | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/src/System.Private.CoreLib/src/System/Activator.cs b/src/System.Private.CoreLib/src/System/Activator.cs index 8ecfa24b8..b098adfd5 100644 --- a/src/System.Private.CoreLib/src/System/Activator.cs +++ b/src/System.Private.CoreLib/src/System/Activator.cs @@ -11,6 +11,7 @@ using System.Diagnostics; using System.Globalization; using System.Reflection; using System.Runtime.CompilerServices; +using System.Runtime.Remoting; using System.Runtime; using Internal.Reflection.Augments; @@ -147,6 +148,50 @@ namespace System } private const BindingFlags ConstructorDefault = BindingFlags.Instance | BindingFlags.Public | BindingFlags.CreateInstance; + + public static ObjectHandle CreateInstance(string assemblyName, string typeName) + { + throw new PlatformNotSupportedException(); // https://github.com/dotnet/corefx/issues/30845 + } + + public static ObjectHandle CreateInstance(string assemblyName, + string typeName, + bool ignoreCase, + BindingFlags bindingAttr, + Binder binder, + object[] args, + CultureInfo culture, + object[] activationAttributes) + { + throw new PlatformNotSupportedException(); // https://github.com/dotnet/corefx/issues/30845 + } + + public static ObjectHandle CreateInstance(string assemblyName, string typeName, object[] activationAttributes) + { + throw new PlatformNotSupportedException(); // https://github.com/dotnet/corefx/issues/30845 + } + + public static ObjectHandle CreateInstanceFrom(string assemblyFile, string typeName) + { + throw new PlatformNotSupportedException(); + } + + public static ObjectHandle CreateInstanceFrom(string assemblyFile, + string typeName, + bool ignoreCase, + BindingFlags bindingAttr, + Binder binder, + object[] args, + CultureInfo culture, + object[] activationAttributes) + { + throw new PlatformNotSupportedException(); + } + + public static ObjectHandle CreateInstanceFrom(string assemblyFile, string typeName, object[] activationAttributes) + { + throw new PlatformNotSupportedException(); + } } } |