Imported Upstream version 6.0.0.271

Former-commit-id: 2fde65daab17ed3bb08a7be86fb05423d63b0290
This commit is contained in:
Xamarin Public Jenkins (auto-signing) 2019-05-29 08:54:19 +00:00
parent 8f11a00d09
commit 2ba231cd0c
155 changed files with 1067 additions and 794 deletions

View File

@ -382,6 +382,7 @@ SHELL = @SHELL@
SIZEOF_VOID_P = @SIZEOF_VOID_P@
SQLITE = @SQLITE@
SQLITE3 = @SQLITE3@
STATIC_GCC_LIBS = @STATIC_GCC_LIBS@
STATIC_ZLIB_PATH = @STATIC_ZLIB_PATH@
STRIP = @STRIP@
TEST_PROFILE = @TEST_PROFILE@

View File

@ -1 +1 @@
83c0c15449e686f77a3888c04ba3b7942733bb25
82211f291c887f62ce30cc2305884e307855ecd8

View File

@ -1 +1 @@
e51c0e1f864d708f76cd1c664b2e141b1248df61
b4f0760a37d6ddf719a54078d952ec1b1e471435

View File

@ -1 +1 @@
f4d1ed8dc18898ec8c74a2831a50329d54f05d95
e11bcccdba2e961d4e81ff05c08677f97826ade0

View File

@ -406,6 +406,7 @@ SHELL = @SHELL@
SIZEOF_VOID_P = @SIZEOF_VOID_P@
SQLITE = @SQLITE@
SQLITE3 = @SQLITE3@
STATIC_GCC_LIBS = @STATIC_GCC_LIBS@
STATIC_ZLIB_PATH = @STATIC_ZLIB_PATH@
STRIP = @STRIP@
TEST_PROFILE = @TEST_PROFILE@

View File

@ -327,6 +327,7 @@ SHELL = @SHELL@
SIZEOF_VOID_P = @SIZEOF_VOID_P@
SQLITE = @SQLITE@
SQLITE3 = @SQLITE3@
STATIC_GCC_LIBS = @STATIC_GCC_LIBS@
STATIC_ZLIB_PATH = @STATIC_ZLIB_PATH@
STRIP = @STRIP@
TEST_PROFILE = @TEST_PROFILE@

View File

@ -387,6 +387,7 @@ SHELL = @SHELL@
SIZEOF_VOID_P = @SIZEOF_VOID_P@
SQLITE = @SQLITE@
SQLITE3 = @SQLITE3@
STATIC_GCC_LIBS = @STATIC_GCC_LIBS@
STATIC_ZLIB_PATH = @STATIC_ZLIB_PATH@
STRIP = @STRIP@
TEST_PROFILE = @TEST_PROFILE@

View File

@ -327,6 +327,7 @@ SHELL = @SHELL@
SIZEOF_VOID_P = @SIZEOF_VOID_P@
SQLITE = @SQLITE@
SQLITE3 = @SQLITE3@
STATIC_GCC_LIBS = @STATIC_GCC_LIBS@
STATIC_ZLIB_PATH = @STATIC_ZLIB_PATH@
STRIP = @STRIP@
TEST_PROFILE = @TEST_PROFILE@

View File

@ -387,6 +387,7 @@ SHELL = @SHELL@
SIZEOF_VOID_P = @SIZEOF_VOID_P@
SQLITE = @SQLITE@
SQLITE3 = @SQLITE3@
STATIC_GCC_LIBS = @STATIC_GCC_LIBS@
STATIC_ZLIB_PATH = @STATIC_ZLIB_PATH@
STRIP = @STRIP@
TEST_PROFILE = @TEST_PROFILE@

View File

@ -327,6 +327,7 @@ SHELL = @SHELL@
SIZEOF_VOID_P = @SIZEOF_VOID_P@
SQLITE = @SQLITE@
SQLITE3 = @SQLITE3@
STATIC_GCC_LIBS = @STATIC_GCC_LIBS@
STATIC_ZLIB_PATH = @STATIC_ZLIB_PATH@
STRIP = @STRIP@
TEST_PROFILE = @TEST_PROFILE@

View File

@ -387,6 +387,7 @@ SHELL = @SHELL@
SIZEOF_VOID_P = @SIZEOF_VOID_P@
SQLITE = @SQLITE@
SQLITE3 = @SQLITE3@
STATIC_GCC_LIBS = @STATIC_GCC_LIBS@
STATIC_ZLIB_PATH = @STATIC_ZLIB_PATH@
STRIP = @STRIP@
TEST_PROFILE = @TEST_PROFILE@

View File

@ -328,6 +328,7 @@ SHELL = @SHELL@
SIZEOF_VOID_P = @SIZEOF_VOID_P@
SQLITE = @SQLITE@
SQLITE3 = @SQLITE3@
STATIC_GCC_LIBS = @STATIC_GCC_LIBS@
STATIC_ZLIB_PATH = @STATIC_ZLIB_PATH@
STRIP = @STRIP@
TEST_PROFILE = @TEST_PROFILE@

View File

@ -1 +1 @@
f37b7c2d4c39f0e7037808844a6da37a890cc5d5
4d40b57c3c756e46690a132fe42760103ba01619

View File

@ -375,6 +375,7 @@ SHELL = @SHELL@
SIZEOF_VOID_P = @SIZEOF_VOID_P@
SQLITE = @SQLITE@
SQLITE3 = @SQLITE3@
STATIC_GCC_LIBS = @STATIC_GCC_LIBS@
STATIC_ZLIB_PATH = @STATIC_ZLIB_PATH@
STRIP = @STRIP@
TEST_PROFILE = @TEST_PROFILE@

View File

@ -298,6 +298,7 @@ SHELL = @SHELL@
SIZEOF_VOID_P = @SIZEOF_VOID_P@
SQLITE = @SQLITE@
SQLITE3 = @SQLITE3@
STATIC_GCC_LIBS = @STATIC_GCC_LIBS@
STATIC_ZLIB_PATH = @STATIC_ZLIB_PATH@
STRIP = @STRIP@
TEST_PROFILE = @TEST_PROFILE@
@ -408,7 +409,9 @@ LLVM_VERSION := $(shell git -C "$(abs_top_srcdir)/external/llvm" rev-parse HEAD)
# FIXME: URL should be http://xamjenkinsartifact.blob.core.windows.net/build-package-osx-llvm-$(LLVM_BRANCH)/llvm-osx64-$(LLVM_VERSION).tar.gz
LLVM_DOWNLOAD_LOCATION = "http://xamjenkinsartifact.blob.core.windows.net/build-package-osx-llvm-release60/llvm-osx64-$(LLVM_VERSION).tar.gz"
NINJA := $(shell which ninja)
EXTRA_LLVM_ARGS = $(if $(filter $(LLVM_TARGET),wasm32), -DLLVM_BUILD_32_BITS=On -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD="WebAssembly",)
EXTRA_LLVM_ARGS = $(if $(filter $(LLVM_TARGET),wasm32), -DLLVM_BUILD_32_BITS=On -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD="WebAssembly",) \
$(if $(STATIC_GCC_LIBS),-DCMAKE_EXE_LINKER_FLAGS="-static")
all: all-am
.SUFFIXES:

View File

@ -15,7 +15,8 @@ NINJA := $(shell which ninja)
$(LLVM_BUILD) $(LLVM_PREFIX):
mkdir -p $@
EXTRA_LLVM_ARGS = $(if $(filter $(LLVM_TARGET),wasm32), -DLLVM_BUILD_32_BITS=On -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD="WebAssembly",)
EXTRA_LLVM_ARGS = $(if $(filter $(LLVM_TARGET),wasm32), -DLLVM_BUILD_32_BITS=On -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD="WebAssembly",) \
$(if $(STATIC_GCC_LIBS),-DCMAKE_EXE_LINKER_FLAGS="-static")
# -DLLVM_ENABLE_LIBXML2=Off is needed because xml2 is not used and it breaks 32-bit builds on 64-bit Linux hosts
$(LLVM_BUILD)/$(if $(NINJA),build.ninja,Makefile): $(abs_top_srcdir)/external/llvm/CMakeLists.txt | $(LLVM_BUILD) $(LLVM_PREFIX)

View File

@ -297,6 +297,7 @@ SHELL = @SHELL@
SIZEOF_VOID_P = @SIZEOF_VOID_P@
SQLITE = @SQLITE@
SQLITE3 = @SQLITE3@
STATIC_GCC_LIBS = @STATIC_GCC_LIBS@
STATIC_ZLIB_PATH = @STATIC_ZLIB_PATH@
STRIP = @STRIP@
TEST_PROFILE = @TEST_PROFILE@

View File

@ -329,6 +329,7 @@ SHELL = @SHELL@
SIZEOF_VOID_P = @SIZEOF_VOID_P@
SQLITE = @SQLITE@
SQLITE3 = @SQLITE3@
STATIC_GCC_LIBS = @STATIC_GCC_LIBS@
STATIC_ZLIB_PATH = @STATIC_ZLIB_PATH@
STRIP = @STRIP@
TEST_PROFILE = @TEST_PROFILE@

View File

@ -41,7 +41,7 @@ static partial class Consts
// Use these assembly version constants to make code more maintainable.
//
public const string MonoVersion = "6.0.0.265";
public const string MonoVersion = "6.0.0.271";
public const string MonoCompany = "Mono development team";
public const string MonoProduct = "Mono Common Language Infrastructure";
public const string MonoCopyright = "(c) Various Mono authors";

View File

@ -6,7 +6,7 @@
PLATFORM_MCS_FLAGS =
PLATFORM_RUNTIME = $(RUNTIME)
PLATFORM_CORLIB = mscorlib.dll
PLATFORM_TEST_HARNESS_EXCLUDES = NotOnMac,MacNotWorking,
PLATFORM_TEST_HARNESS_EXCLUDES = NotOnMac MacNotWorking
EXTERNAL_MCS = mcs
EXTERNAL_MBAS = mbas

View File

@ -6,7 +6,7 @@
PLATFORM_MCS_FLAGS =
PLATFORM_RUNTIME =
PLATFORM_CORLIB = mscorlib.dll
PLATFORM_TEST_HARNESS_EXCLUDES = NotOnWindows,
PLATFORM_TEST_HARNESS_EXCLUDES = NotOnWindows
EXTERNAL_MCS = mcs
EXTERNAL_MBAS = vbc.exe

View File

@ -9,6 +9,7 @@
empty :=
space := $(empty) $(empty)
comma := ,
_FILTER_OUT = $(foreach x,$(2),$(if $(findstring $(1),$(x)),,$(x)))
# given $(thisdir), we compute the path to the top directory

View File

@ -138,13 +138,11 @@ test-local: $(test_assemblies) $(test_lib_dir)/nunit-excludes.txt
run-test-local: run-test-lib
run-test-ondotnet-local: run-test-ondotnet-lib
ifdef TEST_WITH_INTERPRETER
TEST_HARNESS_EXCLUDES = -exclude=$(PLATFORM_TEST_HARNESS_EXCLUDES)$(PROFILE_TEST_HARNESS_EXCLUDES)NotWorking,NotWorkingRuntimeInterpreter,CAS
else
TEST_HARNESS_EXCLUDES = -exclude=$(PLATFORM_TEST_HARNESS_EXCLUDES)$(PROFILE_TEST_HARNESS_EXCLUDES)NotWorking,CAS
endif
TEST_HARNESS_EXCLUDES = $(PLATFORM_TEST_HARNESS_EXCLUDES) $(PROFILE_TEST_HARNESS_EXCLUDES) NotWorking CAS
TEST_HARNESS_EXCLUDES_ONDOTNET = /exclude:$(PLATFORM_TEST_HARNESS_EXCLUDES)$(PROFILE_TEST_HARNESS_EXCLUDES)NotDotNet,CAS
ifdef TEST_WITH_INTERPRETER
TEST_HARNESS_EXCLUDES += NotWorkingRuntimeInterpreter
endif
NOSHADOW_FLAG =
@ -228,18 +226,19 @@ endif # PLATFORM_AOT_SUFFIX
ifneq ($(wildcard $(MKBUNDLE_TEST_BIN)),)
TEST_HARNESS_EXEC=$(MKBUNDLE_TEST_BIN)
TEST_HARNESS_EXCLUDES:=$(TEST_HARNESS_EXCLUDES),StaticLinkedAotNotWorking
TEST_HARNESS_EXCLUDES:=$(TEST_HARNESS_EXCLUDES) StaticLinkedAotNotWorking
else
TEST_HARNESS_EXEC=$(TEST_RUNTIME) $(TEST_RUNTIME_FLAGS) $(TEST_COVERAGE_FLAGS) $(AOT_RUN_FLAGS) $(TEST_HARNESS)
endif
$(test_lib_dir)/nunit-excludes.txt: $(topdir)/build/tests.make | $(test_lib_dir)
@echo "$(TEST_HARNESS_EXCLUDES)" > $@
@rm -f $@
@$(foreach entry,$(TEST_HARNESS_EXCLUDES),echo "$(entry)" >> $@;)
## FIXME: i18n problem in the 'sed' command below
run-test-lib: test-local test-local-aot-compile copy-nunitlite-appconfig
ok=:; \
PATH="$(TEST_RUNTIME_WRAPPERS_PATH):$(PATH)" MONO_REGISTRY_PATH="$(HOME)/.mono/registry" MONO_TESTS_IN_PROGRESS="yes" DBG_RUNTIME_ARGS="$(TEST_RUNTIME_FLAGS)" $(TEST_HARNESS_EXEC) $(test_assemblies) $(NOSHADOW_FLAG) $(TEST_HARNESS_FLAGS) $(LOCAL_TEST_HARNESS_FLAGS) $(TEST_HARNESS_EXCLUDES) $(LABELS_ARG) -format:nunit2 -result:TestResult-$(PROFILE).xml $(FIXTURE_ARG) $(TESTNAME_ARG)|| ok=false; \
PATH="$(TEST_RUNTIME_WRAPPERS_PATH):$(PATH)" MONO_REGISTRY_PATH="$(HOME)/.mono/registry" MONO_TESTS_IN_PROGRESS="yes" DBG_RUNTIME_ARGS="$(TEST_RUNTIME_FLAGS)" $(TEST_HARNESS_EXEC) $(test_assemblies) $(NOSHADOW_FLAG) $(TEST_HARNESS_FLAGS) $(LOCAL_TEST_HARNESS_FLAGS) -exclude=$(subst $(space),$(comma),$(TEST_HARNESS_EXCLUDES)) $(LABELS_ARG) -format:nunit2 -result:TestResult-$(PROFILE).xml $(FIXTURE_ARG) $(TESTNAME_ARG)|| ok=false; \
if [ ! -f "TestResult-$(PROFILE).xml" ]; then echo "<?xml version='1.0' encoding='utf-8'?><test-results failures='1' total='1' not-run='0' name='bcl-tests' date='$$(date +%F)' time='$$(date +%T)'><test-suite name='$(strip $(test_assemblies))' success='False' time='0'><results><test-case name='$(notdir $(strip $(test_assemblies))).crash' executed='True' success='False' time='0'><failure><message>The test runner didn't produce a test result XML, probably due to a crash of the runtime. Check the log for more details.</message><stack-trace></stack-trace></failure></test-case></results></test-suite></test-results>" > TestResult-$(PROFILE).xml; fi; \
$$ok
@ -247,7 +246,7 @@ run-test-lib: test-local test-local-aot-compile copy-nunitlite-appconfig
run-test-ondotnet-lib: LOCAL_TEST_COMPILER_ONDOTNET_FLAGS:=-d:RUN_ONDOTNET
run-test-ondotnet-lib: test-local
ok=:; \
$(TEST_HARNESS) $(test_assemblies) $(NOSHADOW_FLAG) $(TEST_HARNESS_FLAGS) $(LOCAL_TEST_HARNESS_ONDOTNET_FLAGS) $(TEST_HARNESS_EXCLUDES_ONDOTNET) $(LABELS_ARG) -format:nunit2 -result:TestResult-ondotnet-$(PROFILE).xml $(FIXTURE_ARG) $(TESTNAME_ARG) || ok=false; \
$(TEST_HARNESS) $(test_assemblies) $(NOSHADOW_FLAG) $(TEST_HARNESS_FLAGS) $(LOCAL_TEST_HARNESS_ONDOTNET_FLAGS) /exclude:$(subst $(space),$(comma),$(TEST_HARNESS_EXCLUDES) NotDotNet) $(LABELS_ARG) -format:nunit2 -result:TestResult-ondotnet-$(PROFILE).xml $(FIXTURE_ARG) $(TESTNAME_ARG) || ok=false; \
$$ok
@ -304,15 +303,17 @@ XTEST_HARNESS_PATH := $(topdir)/../external/xunit-binaries
XTEST_HARNESS = $(XTEST_HARNESS_PATH)/xunit.console.exe
XTEST_RESULT_FILE := TestResult-$(PROFILE)-xunit.xml
XTEST_HARNESS_FLAGS := -noappdomain -noshadow -parallel none -nunit $(XTEST_RESULT_FILE)
ifdef OUTER_LOOP
XTEST_TRAIT := -notrait category=failing -notrait category=nonmonotests -notrait Benchmark=true
else
XTEST_TRAIT := -notrait category=failing -notrait category=nonmonotests -notrait Benchmark=true -notrait category=outerloop
XTEST_NOTRAITS := category=failing category=nonmonotests Benchmark=true
ifndef OUTER_LOOP
XTEST_NOTRAITS += category=outerloop
endif
# The logic is double inverted so this actually excludes tests not intented for current platform
# best to search for `property name="category"` in the xml output to see what's going on
# https://github.com/dotnet/buildtools/blob/master/src/xunit.netcore.extensions/Discoverers/PlatformSpecificDiscoverer.cs
XTEST_TRAIT_PLATFORM := -notrait category=non$(XTEST_PLATFORM)tests
XTEST_NOTRAITS += category=non$(XTEST_PLATFORM)tests
TEST_MONO_PATH := $(TEST_MONO_PATH)$(PLATFORM_PATH_SEPARATOR)$(XTEST_HARNESS_PATH)
@ -333,7 +334,8 @@ xunit-test-local: $(xtest_lib_output) $(test_lib_dir)/xunit-excludes.txt $(test_
run-xunit-test-local: run-xunit-test-lib
$(test_lib_dir)/xunit-excludes.txt: $(topdir)/build/tests.make | $(test_lib_dir)
@echo "$(XTEST_TRAIT) $(XTEST_TRAIT_PLATFORM)" > $@
@rm -f $@
$(foreach entry,$(XTEST_NOTRAITS),echo "$(entry)" >> $@;)
$(test_lib_dir)/Xunit.NetCore.Extensions.dll: $(topdir)/build/tests.make $(topdir)/../external/xunit-binaries/Xunit.NetCore.Extensions.dll | $(test_lib_dir)
@cp -f $(topdir)/../external/xunit-binaries/Xunit.NetCore.Extensions.dll $@
@ -344,7 +346,7 @@ $(test_lib_dir)/xunit.execution.dotnet.dll: $(topdir)/build/tests.make $(topdir)
# cp -rf is a HACK for xunit runner to require xunit.execution.dOTNET.dll file in local folder on .net only
run-xunit-test-lib: xunit-test-local
ok=:; \
PATH="$(TEST_RUNTIME_WRAPPERS_PATH):$(PATH)" REMOTE_EXECUTOR="$(XTEST_REMOTE_EXECUTOR_ABSPATH)" $(TEST_RUNTIME) $(TEST_RUNTIME_FLAGS) $(XTEST_COVERAGE_FLAGS) $(AOT_RUN_FLAGS) $(XTEST_HARNESS) $(xtest_lib_output) $(XTEST_HARNESS_FLAGS) $(XTEST_TRAIT) $(XTEST_TRAIT_PLATFORM) || ok=false; \
PATH="$(TEST_RUNTIME_WRAPPERS_PATH):$(PATH)" REMOTE_EXECUTOR="$(XTEST_REMOTE_EXECUTOR_ABSPATH)" $(TEST_RUNTIME) $(TEST_RUNTIME_FLAGS) $(XTEST_COVERAGE_FLAGS) $(AOT_RUN_FLAGS) $(XTEST_HARNESS) $(xtest_lib_output) $(XTEST_HARNESS_FLAGS) -notrait $(subst $(space), -notrait ,$(XTEST_NOTRAITS)) || ok=false; \
if [ -n "$$MONO_BABYSITTER_NUNIT_XML_LIST_FILE" ]; then echo "$(abspath $(XTEST_RESULT_FILE))" >> "$$MONO_BABYSITTER_NUNIT_XML_LIST_FILE"; fi; \
$$ok

View File

@ -37,10 +37,10 @@ else
MANAGED_INTERP := $(filter orbis winaot monotouch monotouch_tv monotouch_watch, $(PROFILE))
ifdef MANAGED_INTERP
LIB_MCS_FLAGS += -d:NO_FEATURE_STATIC_DELEGATE,FEATURE_MAKE_RUN_METHODS
PROFILE_TEST_HARNESS_EXCLUDES := $(PROFILE_TEST_HARNESS_EXCLUDES)NotWorkingLinqInterpreter,
PROFILE_TEST_HARNESS_EXCLUDES := $(PROFILE_TEST_HARNESS_EXCLUDES) NotWorkingLinqInterpreter
else
LIB_MCS_FLAGS += -d:FEATURE_COMPILE,FEATURE_COMPILE_TO_METHODBUILDER
PROFILE_TEST_HARNESS_EXCLUDES := $(PROFILE_TEST_HARNESS_EXCLUDES)SRE,
PROFILE_TEST_HARNESS_EXCLUDES := $(PROFILE_TEST_HARNESS_EXCLUDES) SRE
endif
endif

View File

@ -116,8 +116,7 @@ test-local: $(topdir)/class/lib/$(PROFILE)/tests/DummyAssembly.dll
include ../../build/library.make
TEST_HARNESS_EXCLUDES = -exclude=Interactive,NotWorking,CAS
TEST_HARNESS_EXCLUDES_ONDOTNET = -exclude=Interactive,NotDotNet,CAS
TEST_HARNESS_EXCLUDES += Interactive
$(the_lib): $(RESOURCES)

View File

@ -85,7 +85,7 @@ RESOURCE_FILES = \
REFERENCE_SOURCES_FLAGS = -d:FEATURE_PAL,GENERICS_WORK,FEATURE_LIST_PREDICATES,FEATURE_SERIALIZATION,FEATURE_ENCODINGNLS,FEATURE_ASCII,FEATURE_LATIN1,FEATURE_UTF7,FEATURE_UTF32,MONO_HYBRID_ENCODING_SUPPORT,FEATURE_ASYNC_IO,NEW_EXPERIMENTAL_ASYNC_IO,FEATURE_UTF32,FEATURE_EXCEPTIONDISPATCHINFO,FEATURE_CORRUPTING_EXCEPTIONS,FEATURE_EXCEPTION_NOTIFICATIONS,FEATURE_STRONGNAME_MIGRATION,FEATURE_USE_LCID,FEATURE_FUSION,FEATURE_CRYPTO,FEATURE_X509_SECURESTRINGS,FEATURE_SYNCHRONIZATIONCONTEXT,FEATURE_SYNCHRONIZATIONCONTEXT_WAIT,HAS_CORLIB_CONTRACTS
ifdef NO_SRE
PROFILE_TEST_HARNESS_EXCLUDES := $(PROFILE_TEST_HARNESS_EXCLUDES)SRE,
PROFILE_TEST_HARNESS_EXCLUDES := $(PROFILE_TEST_HARNESS_EXCLUDES) SRE
else
LIB_MCS_FLAGS += -d:MONO_FEATURE_SRE
endif

View File

@ -27,11 +27,103 @@
//
#if !MONO_FEATURE_SRE
using System.Globalization;
using System.IO;
namespace System.Reflection.Emit
{
public class AssemblyBuilder : Assembly
{
private AssemblyBuilder () {}
public override string CodeBase {
get {
throw new PlatformNotSupportedException ();
}
}
public override MethodInfo EntryPoint {
get {
throw new PlatformNotSupportedException ();
}
}
public override string EscapedCodeBase {
get {
throw new PlatformNotSupportedException ();
}
}
public override System.Security.Policy.Evidence Evidence {
get {
throw new PlatformNotSupportedException ();
}
}
public override string FullName {
get {
throw new PlatformNotSupportedException ();
}
}
public override bool GlobalAssemblyCache {
get {
throw new PlatformNotSupportedException ();
}
}
public override string ImageRuntimeVersion {
get {
throw new PlatformNotSupportedException ();
}
}
public override bool IsDynamic {
get {
throw new PlatformNotSupportedException ();
}
}
public override string Location {
get {
throw new PlatformNotSupportedException ();
}
}
public override Module ManifestModule {
get {
throw new PlatformNotSupportedException ();
}
}
public override bool ReflectionOnly {
get {
throw new PlatformNotSupportedException ();
}
}
public void AddResourceFile (string name, string fileName) => throw new PlatformNotSupportedException ();
public void AddResourceFile (string name, string fileName, ResourceAttributes attribute) => throw new PlatformNotSupportedException ();
public ModuleBuilder DefineDynamicModule (string name, bool emitSymbolInfo) => throw new PlatformNotSupportedException ();
public ModuleBuilder DefineDynamicModule (string name, string fileName) => throw new PlatformNotSupportedException ();
public ModuleBuilder DefineDynamicModule (string name, string fileName, bool emitSymbolInfo) => throw new PlatformNotSupportedException ();
public System.Resources.IResourceWriter DefineResource (string name, string description, string fileName) => throw new PlatformNotSupportedException ();
public System.Resources.IResourceWriter DefineResource (string name, string description, string fileName, ResourceAttributes attribute) => throw new PlatformNotSupportedException ();
public void DefineUnmanagedResource (byte[] resource) => throw new PlatformNotSupportedException ();
public void DefineUnmanagedResource (string resourceFileName) => throw new PlatformNotSupportedException ();
public void DefineVersionInfoResource () => throw new PlatformNotSupportedException ();
public void DefineVersionInfoResource (string product, string productVersion, string company, string copyright, string trademark) => throw new PlatformNotSupportedException ();
public static AssemblyBuilder DefineDynamicAssembly (AssemblyName name, AssemblyBuilderAccess access)
{
throw new PlatformNotSupportedException ();
@ -47,11 +139,55 @@ namespace System.Reflection.Emit
throw new PlatformNotSupportedException ();
}
public override bool Equals (object obj) => throw new PlatformNotSupportedException ();
public override object[] GetCustomAttributes (bool inherit) => throw new PlatformNotSupportedException ();
public override object[] GetCustomAttributes (System.Type attributeType, bool inherit) => throw new PlatformNotSupportedException ();
public ModuleBuilder GetDynamicModule (string name)
{
throw new PlatformNotSupportedException ();
}
public override Type[] GetExportedTypes () => throw new PlatformNotSupportedException ();
public override FileStream GetFile (string name) => throw new PlatformNotSupportedException ();
public override FileStream[] GetFiles (bool getResourceModules) => throw new PlatformNotSupportedException ();
public override int GetHashCode () => throw new PlatformNotSupportedException ();
public override Module[] GetLoadedModules (bool getResourceModules) => throw new PlatformNotSupportedException ();
public override ManifestResourceInfo GetManifestResourceInfo (string resourceName) => throw new PlatformNotSupportedException ();
public override string[] GetManifestResourceNames () => throw new PlatformNotSupportedException ();
public override Stream GetManifestResourceStream (string name) => throw new PlatformNotSupportedException ();
public override Stream GetManifestResourceStream (Type type, string name) => throw new PlatformNotSupportedException ();
public override Module GetModule (string name) => throw new PlatformNotSupportedException ();
public override Module[] GetModules (bool getResourceModules) => throw new PlatformNotSupportedException ();
public override AssemblyName GetName (bool copiedName) => throw new PlatformNotSupportedException ();
public override AssemblyName[] GetReferencedAssemblies () => throw new PlatformNotSupportedException ();
public override Assembly GetSatelliteAssembly (CultureInfo culture) => throw new PlatformNotSupportedException ();
public override Assembly GetSatelliteAssembly (CultureInfo culture, Version version) => throw new PlatformNotSupportedException ();
public override Type GetType (string name, bool throwOnError, bool ignoreCase) => throw new PlatformNotSupportedException ();
public override bool IsDefined (Type attributeType, bool inherit) => throw new PlatformNotSupportedException ();
public void Save (string assemblyFileName) => throw new PlatformNotSupportedException ();
public void Save (string assemblyFileName, PortableExecutableKinds portableExecutableKind, ImageFileMachine imageFileMachine) => throw new PlatformNotSupportedException ();
public void SetCustomAttribute (CustomAttributeBuilder customBuilder)
{
throw new PlatformNotSupportedException ();
@ -63,6 +199,11 @@ namespace System.Reflection.Emit
throw new PlatformNotSupportedException ();
}
public void SetEntryPoint (MethodInfo entryMethod) => throw new PlatformNotSupportedException ();
public void SetEntryPoint (MethodInfo entryMethod, PEFileKinds fileKind) => throw new PlatformNotSupportedException ();
public override string ToString () => throw new PlatformNotSupportedException ();
}
}

View File

@ -26,12 +26,18 @@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Collections;
using System.Collections.Generic;
#if !MONO_FEATURE_SRE
namespace System.Reflection.Emit
{
public abstract class ConstructorBuilder : ConstructorInfo
public class ConstructorBuilder : ConstructorInfo
{
internal ConstructorBuilder () {}
public bool InitLocals { get; set; }
public override MethodAttributes Attributes {
@ -40,18 +46,37 @@ namespace System.Reflection.Emit
}
}
public override CallingConventions CallingConvention {
get {
throw new PlatformNotSupportedException ();
}
}
public override Type DeclaringType {
get {
throw new PlatformNotSupportedException ();
}
}
public override Module Module {
get {
throw new PlatformNotSupportedException ();
}
}
public override string Name {
get {
throw new PlatformNotSupportedException ();
}
}
[Obsolete]
public Type ReturnType {
get {
throw new PlatformNotSupportedException ();
}
}
public ParameterBuilder DefineParameter (int iSequence, ParameterAttributes attributes, string strParamName)
{
throw new PlatformNotSupportedException ();
@ -86,6 +111,25 @@ namespace System.Reflection.Emit
{
throw new PlatformNotSupportedException ();
}
public string Signature => throw new PlatformNotSupportedException ();
public Module GetModule () => throw new PlatformNotSupportedException ();
public MethodToken GetToken () => throw new PlatformNotSupportedException ();
public void SetMethodBody (byte[] il, int maxStack, byte[] localSignature,
IEnumerable<ExceptionHandler> exceptionHandlers, IEnumerable<int> tokenFixups) =>
throw new PlatformNotSupportedException ();
public void AddDeclarativeSecurity (System.Security.Permissions.SecurityAction action, System.Security.PermissionSet pset) { throw new PlatformNotSupportedException (); }
public override System.Reflection.MethodImplAttributes GetMethodImplementationFlags() { throw new PlatformNotSupportedException (); }
public override System.RuntimeMethodHandle MethodHandle { get { throw new PlatformNotSupportedException (); } }
public override object Invoke(System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, object[] parameters, System.Globalization.CultureInfo culture) { throw new PlatformNotSupportedException (); }
public override bool IsDefined(System.Type attributeType, bool inherit) { throw new PlatformNotSupportedException (); }
public override object[] GetCustomAttributes(bool inherit) { throw new PlatformNotSupportedException (); }
public override object[] GetCustomAttributes(System.Type attributeType, bool inherit) { throw new PlatformNotSupportedException (); }
public override System.Type ReflectedType { get { throw new PlatformNotSupportedException (); } }
public override object Invoke(object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, object[] parameters, System.Globalization.CultureInfo culture) { throw new PlatformNotSupportedException (); }
public void SetSymCustomAttribute (string name, byte[] data) { throw new PlatformNotSupportedException (); }
public override string ToString () { throw new PlatformNotSupportedException (); }
}
}

View File

@ -94,10 +94,10 @@ namespace System.Reflection.Emit
public bool InitLocals { get; set; }
public override MethodImplAttributes MethodImplementationFlags {
public override Module Module {
get {
throw new PlatformNotSupportedException ();
}
}
}
public override string Name {
@ -137,6 +137,9 @@ namespace System.Reflection.Emit
public override Type ReflectedType { get { throw new PlatformNotSupportedException (); } }
public override ICustomAttributeProvider ReturnTypeCustomAttributes { get { throw new PlatformNotSupportedException (); } }
public override sealed Delegate CreateDelegate (Type delegateType) { throw new PlatformNotSupportedException (); }
public override sealed Delegate CreateDelegate (Type delegateType, object target) { throw new PlatformNotSupportedException (); }
public override object[] GetCustomAttributes (bool inherit) { throw new PlatformNotSupportedException (); }
public override object[] GetCustomAttributes (Type attributeType, bool inherit) { throw new PlatformNotSupportedException (); }
public override MethodImplAttributes GetMethodImplementationFlags () { throw new PlatformNotSupportedException (); }
@ -145,6 +148,11 @@ namespace System.Reflection.Emit
public override object Invoke (object obj, BindingFlags invokeAttr, Binder binder, object[] parameters, CultureInfo culture) { throw new PlatformNotSupportedException (); }
public override bool IsDefined (Type attributeType, bool inherit) { throw new PlatformNotSupportedException (); }
public ParameterBuilder DefineParameter (int position, ParameterAttributes attributes, string parameterName) => throw new PlatformNotSupportedException ();
public DynamicILInfo GetDynamicILInfo () => throw new PlatformNotSupportedException ();
public override string ToString () => throw new PlatformNotSupportedException ();
}
}

View File

@ -30,87 +30,67 @@
namespace System.Reflection.Emit
{
public abstract class EnumBuilder : TypeInfo
public sealed partial class EnumBuilder : System.Reflection.TypeInfo
{
public FieldBuilder UnderlyingField {
get {
throw new PlatformNotSupportedException ();
}
}
public override Assembly Assembly {
get {
throw new PlatformNotSupportedException ();
}
}
public override string AssemblyQualifiedName {
get {
throw new PlatformNotSupportedException ();
}
}
public override Type BaseType {
get {
throw new PlatformNotSupportedException ();
}
}
public override string FullName {
get {
throw new PlatformNotSupportedException ();
}
}
public override Guid GUID {
get {
throw new PlatformNotSupportedException ();
}
}
public override Module Module {
get {
throw new PlatformNotSupportedException ();
}
}
public override string Name {
get {
throw new PlatformNotSupportedException ();
}
}
public override string Namespace {
get {
throw new PlatformNotSupportedException ();
}
}
public TypeInfo CreateTypeInfo ()
{
throw new PlatformNotSupportedException ();
}
public FieldBuilder DefineLiteral (string literalName, object literalValue)
{
throw new PlatformNotSupportedException ();
}
public override System.Type GetElementType ()
{
throw new PlatformNotSupportedException ();
}
public void SetCustomAttribute (CustomAttributeBuilder customBuilder)
{
throw new PlatformNotSupportedException ();
}
public void SetCustomAttribute (ConstructorInfo con, byte[] binaryAttribute)
{
throw new PlatformNotSupportedException ();
}
internal EnumBuilder() { throw new PlatformNotSupportedException (); }
public override System.Reflection.Assembly Assembly { get { throw new PlatformNotSupportedException (); } }
public override string AssemblyQualifiedName { get { throw new PlatformNotSupportedException (); } }
public override System.Type BaseType { get { throw new PlatformNotSupportedException (); } }
public override System.Type DeclaringType { get { throw new PlatformNotSupportedException (); } }
public override string FullName { get { throw new PlatformNotSupportedException (); } }
public override System.Guid GUID { get { throw new PlatformNotSupportedException (); } }
public override bool IsConstructedGenericType { get { throw new PlatformNotSupportedException (); } }
public override bool IsTypeDefinition { get { throw new PlatformNotSupportedException (); } }
public override System.Reflection.Module Module { get { throw new PlatformNotSupportedException (); } }
public override string Name { get { throw new PlatformNotSupportedException (); } }
public override string Namespace { get { throw new PlatformNotSupportedException (); } }
public override System.Type ReflectedType { get { throw new PlatformNotSupportedException (); } }
public override System.RuntimeTypeHandle TypeHandle { get { throw new PlatformNotSupportedException (); } }
public System.Reflection.Emit.TypeToken TypeToken { get { throw new PlatformNotSupportedException (); } }
public System.Reflection.Emit.FieldBuilder UnderlyingField { get { throw new PlatformNotSupportedException (); } }
public override System.Type UnderlyingSystemType { get { throw new PlatformNotSupportedException (); } }
public System.Type CreateType() { throw new PlatformNotSupportedException (); }
public System.Reflection.TypeInfo CreateTypeInfo() { throw new PlatformNotSupportedException (); }
public System.Reflection.Emit.FieldBuilder DefineLiteral(string literalName, object literalValue) { throw new PlatformNotSupportedException (); }
protected override System.Reflection.TypeAttributes GetAttributeFlagsImpl() { throw new PlatformNotSupportedException (); }
protected override System.Reflection.ConstructorInfo GetConstructorImpl(System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, System.Reflection.CallingConventions callConvention, System.Type[] types, System.Reflection.ParameterModifier[] modifiers) { throw new PlatformNotSupportedException (); }
public override System.Reflection.ConstructorInfo[] GetConstructors(System.Reflection.BindingFlags bindingAttr) { throw new PlatformNotSupportedException (); }
public override object[] GetCustomAttributes(bool inherit) { throw new PlatformNotSupportedException (); }
public override object[] GetCustomAttributes(System.Type attributeType, bool inherit) { throw new PlatformNotSupportedException (); }
public override System.Type GetElementType() { throw new PlatformNotSupportedException (); }
public override System.Type GetEnumUnderlyingType() { throw new PlatformNotSupportedException (); }
public override System.Reflection.EventInfo GetEvent(string name, System.Reflection.BindingFlags bindingAttr) { throw new PlatformNotSupportedException (); }
public override System.Reflection.EventInfo[] GetEvents() { throw new PlatformNotSupportedException (); }
public override System.Reflection.EventInfo[] GetEvents(System.Reflection.BindingFlags bindingAttr) { throw new PlatformNotSupportedException (); }
public override System.Reflection.FieldInfo GetField(string name, System.Reflection.BindingFlags bindingAttr) { throw new PlatformNotSupportedException (); }
public override System.Reflection.FieldInfo[] GetFields(System.Reflection.BindingFlags bindingAttr) { throw new PlatformNotSupportedException (); }
public override System.Type GetInterface(string name, bool ignoreCase) { throw new PlatformNotSupportedException (); }
public override System.Reflection.InterfaceMapping GetInterfaceMap(System.Type interfaceType) { throw new PlatformNotSupportedException (); }
public override System.Type[] GetInterfaces() { throw new PlatformNotSupportedException (); }
public override System.Reflection.MemberInfo[] GetMember(string name, System.Reflection.MemberTypes type, System.Reflection.BindingFlags bindingAttr) { throw new PlatformNotSupportedException (); }
public override System.Reflection.MemberInfo[] GetMembers(System.Reflection.BindingFlags bindingAttr) { throw new PlatformNotSupportedException (); }
protected override System.Reflection.MethodInfo GetMethodImpl(string name, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, System.Reflection.CallingConventions callConvention, System.Type[] types, System.Reflection.ParameterModifier[] modifiers) { throw new PlatformNotSupportedException (); }
public override System.Reflection.MethodInfo[] GetMethods(System.Reflection.BindingFlags bindingAttr) { throw new PlatformNotSupportedException (); }
public override System.Type GetNestedType(string name, System.Reflection.BindingFlags bindingAttr) { throw new PlatformNotSupportedException (); }
public override System.Type[] GetNestedTypes(System.Reflection.BindingFlags bindingAttr) { throw new PlatformNotSupportedException (); }
public override System.Reflection.PropertyInfo[] GetProperties(System.Reflection.BindingFlags bindingAttr) { throw new PlatformNotSupportedException (); }
protected override System.Reflection.PropertyInfo GetPropertyImpl(string name, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, System.Type returnType, System.Type[] types, System.Reflection.ParameterModifier[] modifiers) { throw new PlatformNotSupportedException (); }
protected override bool HasElementTypeImpl() { throw new PlatformNotSupportedException (); }
public override object InvokeMember(string name, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, object target, object[] args, System.Reflection.ParameterModifier[] modifiers, System.Globalization.CultureInfo culture, string[] namedParameters) { throw new PlatformNotSupportedException (); }
protected override bool IsArrayImpl() { throw new PlatformNotSupportedException (); }
public override bool IsAssignableFrom (System.Reflection.TypeInfo typeInfo) { throw new PlatformNotSupportedException (); }
protected override bool IsByRefImpl() { throw new PlatformNotSupportedException (); }
protected override bool IsCOMObjectImpl() { throw new PlatformNotSupportedException (); }
public override bool IsDefined(System.Type attributeType, bool inherit) { throw new PlatformNotSupportedException (); }
protected override bool IsPointerImpl() { throw new PlatformNotSupportedException (); }
protected override bool IsPrimitiveImpl() { throw new PlatformNotSupportedException (); }
protected override bool IsValueTypeImpl() { throw new PlatformNotSupportedException (); }
public override System.Type MakeArrayType() { throw new PlatformNotSupportedException (); }
public override System.Type MakeArrayType(int rank) { throw new PlatformNotSupportedException (); }
public override System.Type MakeByRefType() { throw new PlatformNotSupportedException (); }
public override System.Type MakePointerType() { throw new PlatformNotSupportedException (); }
public void SetCustomAttribute(System.Reflection.ConstructorInfo con, byte[] binaryAttribute) { throw new PlatformNotSupportedException (); }
public void SetCustomAttribute(System.Reflection.Emit.CustomAttributeBuilder customBuilder) { throw new PlatformNotSupportedException (); }
}
}

View File

@ -32,6 +32,8 @@ namespace System.Reflection.Emit
{
public class EventBuilder
{
private EventBuilder () {}
public void AddOtherMethod (MethodBuilder mdBuilder)
{
throw new PlatformNotSupportedException ();
@ -61,6 +63,8 @@ namespace System.Reflection.Emit
{
throw new PlatformNotSupportedException ();
}
public EventToken GetEventToken () => throw new PlatformNotSupportedException ();
}
}

View File

@ -30,56 +30,29 @@
namespace System.Reflection.Emit
{
public abstract class FieldBuilder : FieldInfo
public sealed partial class FieldBuilder : System.Reflection.FieldInfo
{
public override FieldAttributes Attributes {
get {
throw new PlatformNotSupportedException ();
}
}
public override Type DeclaringType {
get {
throw new PlatformNotSupportedException ();
}
}
public override Type FieldType {
get {
throw new PlatformNotSupportedException ();
}
}
public override string Name {
get {
throw new PlatformNotSupportedException ();
}
}
public override object GetValue (object obj)
{
throw new PlatformNotSupportedException ();
}
public void SetConstant (object defaultValue)
{
throw new PlatformNotSupportedException ();
}
public void SetCustomAttribute (CustomAttributeBuilder customBuilder)
{
throw new PlatformNotSupportedException ();
}
public void SetCustomAttribute (ConstructorInfo con, byte[] binaryAttribute)
{
throw new PlatformNotSupportedException ();
}
public void SetOffset (int iOffset)
{
throw new PlatformNotSupportedException ();
}
internal FieldBuilder() { throw new PlatformNotSupportedException (); }
public override System.Reflection.FieldAttributes Attributes { get { throw null; } }
public override System.Type DeclaringType { get { throw null; } }
public override System.RuntimeFieldHandle FieldHandle { get { throw null; } }
public override System.Type FieldType { get { throw null; } }
public override string Name { get { throw null; } }
public override System.Type ReflectedType { get { throw null; } }
public override object[] GetCustomAttributes(bool inherit) { throw null; }
public override object[] GetCustomAttributes(System.Type attributeType, bool inherit) { throw null; }
public System.Reflection.Emit.FieldToken GetToken() { throw null; }
public override object GetValue(object obj) { throw null; }
public override bool IsDefined(System.Type attributeType, bool inherit) { throw null; }
public override int MetadataToken { get { throw new PlatformNotSupportedException (); } }
public override Module Module { get { throw new PlatformNotSupportedException (); } }
public void SetConstant(object defaultValue) { throw new PlatformNotSupportedException (); }
public void SetCustomAttribute(System.Reflection.ConstructorInfo con, byte[] binaryAttribute) { throw new PlatformNotSupportedException (); }
public void SetCustomAttribute(System.Reflection.Emit.CustomAttributeBuilder customBuilder) { throw new PlatformNotSupportedException (); }
[Obsolete ("An alternate API is available: Emit the MarshalAs custom attribute instead.")]
public void SetMarshal (UnmanagedMarshal unmanagedMarshal) { throw new PlatformNotSupportedException (); }
public void SetOffset(int iOffset) { throw new PlatformNotSupportedException (); }
public override void SetValue(object obj, object val, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Globalization.CultureInfo culture) { throw new PlatformNotSupportedException (); }
}
}

View File

@ -30,85 +30,79 @@
namespace System.Reflection.Emit
{
public abstract class GenericTypeParameterBuilder : TypeInfo
public sealed partial class GenericTypeParameterBuilder : System.Reflection.TypeInfo
{
public override Assembly Assembly {
get {
throw new PlatformNotSupportedException ();
}
}
public override string AssemblyQualifiedName {
get {
throw new PlatformNotSupportedException ();
}
}
public override Type BaseType {
get {
throw new PlatformNotSupportedException ();
}
}
public override string FullName {
get {
throw new PlatformNotSupportedException ();
}
}
public override Guid GUID {
get {
throw new PlatformNotSupportedException ();
}
}
public override Module Module {
get {
throw new PlatformNotSupportedException ();
}
}
public override string Name {
get {
throw new PlatformNotSupportedException ();
}
}
public override string Namespace {
get {
throw new PlatformNotSupportedException ();
}
}
public override Type GetElementType ()
{
throw new PlatformNotSupportedException ();
}
public void SetBaseTypeConstraint (Type baseTypeConstraint)
{
throw new PlatformNotSupportedException ();
}
public void SetCustomAttribute (CustomAttributeBuilder customBuilder)
{
throw new PlatformNotSupportedException ();
}
public void SetCustomAttribute (ConstructorInfo con, byte[] binaryAttribute)
{
throw new PlatformNotSupportedException ();
}
public void SetGenericParameterAttributes (GenericParameterAttributes genericParameterAttributes)
{
throw new PlatformNotSupportedException ();
}
public void SetInterfaceConstraints (Type[] interfaceConstraints)
{
throw new PlatformNotSupportedException ();
}
internal GenericTypeParameterBuilder() { throw new PlatformNotSupportedException (); }
public override System.Reflection.Assembly Assembly { get { throw new PlatformNotSupportedException (); } }
public override string AssemblyQualifiedName { get { throw new PlatformNotSupportedException (); } }
public override System.Type BaseType { get { throw new PlatformNotSupportedException (); } }
public override bool ContainsGenericParameters { get { throw new PlatformNotSupportedException (); } }
public override System.Reflection.MethodBase DeclaringMethod { get { throw new PlatformNotSupportedException (); } }
public override System.Type DeclaringType { get { throw new PlatformNotSupportedException (); } }
public override string FullName { get { throw new PlatformNotSupportedException (); } }
public override System.Reflection.GenericParameterAttributes GenericParameterAttributes { get { throw new PlatformNotSupportedException (); } }
public override int GenericParameterPosition { get { throw new PlatformNotSupportedException (); } }
public override System.Guid GUID { get { throw new PlatformNotSupportedException (); } }
public override bool IsGenericParameter { get { throw new PlatformNotSupportedException (); } }
public override bool IsGenericType { get { throw new PlatformNotSupportedException (); } }
public override bool IsGenericTypeDefinition { get { throw new PlatformNotSupportedException (); } }
public override System.Reflection.Module Module { get { throw new PlatformNotSupportedException (); } }
public override string Name { get { throw new PlatformNotSupportedException (); } }
public override string Namespace { get { throw new PlatformNotSupportedException (); } }
public override System.Type ReflectedType { get { throw new PlatformNotSupportedException (); } }
public override System.RuntimeTypeHandle TypeHandle { get { throw new PlatformNotSupportedException (); } }
public override System.Type UnderlyingSystemType { get { throw new PlatformNotSupportedException (); } }
public override bool Equals(object o) { throw new PlatformNotSupportedException (); }
protected override System.Reflection.TypeAttributes GetAttributeFlagsImpl() { throw new PlatformNotSupportedException (); }
protected override System.Reflection.ConstructorInfo GetConstructorImpl(System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, System.Reflection.CallingConventions callConvention, System.Type[] types, System.Reflection.ParameterModifier[] modifiers) { throw new PlatformNotSupportedException (); }
public override System.Reflection.ConstructorInfo[] GetConstructors(System.Reflection.BindingFlags bindingAttr) { throw new PlatformNotSupportedException (); }
public override object[] GetCustomAttributes(bool inherit) { throw new PlatformNotSupportedException (); }
public override object[] GetCustomAttributes(System.Type attributeType, bool inherit) { throw new PlatformNotSupportedException (); }
public override System.Type GetElementType() { throw new PlatformNotSupportedException (); }
public override System.Reflection.EventInfo GetEvent(string name, System.Reflection.BindingFlags bindingAttr) { throw new PlatformNotSupportedException (); }
public override System.Reflection.EventInfo[] GetEvents() { throw new PlatformNotSupportedException (); }
public override System.Reflection.EventInfo[] GetEvents(System.Reflection.BindingFlags bindingAttr) { throw new PlatformNotSupportedException (); }
public override System.Reflection.FieldInfo GetField(string name, System.Reflection.BindingFlags bindingAttr) { throw new PlatformNotSupportedException (); }
public override System.Reflection.FieldInfo[] GetFields(System.Reflection.BindingFlags bindingAttr) { throw new PlatformNotSupportedException (); }
public override System.Type[] GetGenericArguments() { throw new PlatformNotSupportedException (); }
public override System.Type[] GetGenericParameterConstraints () { throw new PlatformNotSupportedException (); }
public override System.Type GetGenericTypeDefinition() { throw new PlatformNotSupportedException (); }
public override int GetHashCode() { throw new PlatformNotSupportedException (); }
public override System.Type GetInterface(string name, bool ignoreCase) { throw new PlatformNotSupportedException (); }
public override System.Reflection.InterfaceMapping GetInterfaceMap(System.Type interfaceType) { throw new PlatformNotSupportedException (); }
public override System.Type[] GetInterfaces() { throw new PlatformNotSupportedException (); }
public override System.Reflection.MemberInfo[] GetMember(string name, System.Reflection.MemberTypes type, System.Reflection.BindingFlags bindingAttr) { throw new PlatformNotSupportedException (); }
public override System.Reflection.MemberInfo[] GetMembers(System.Reflection.BindingFlags bindingAttr) { throw new PlatformNotSupportedException (); }
protected override System.Reflection.MethodInfo GetMethodImpl(string name, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, System.Reflection.CallingConventions callConvention, System.Type[] types, System.Reflection.ParameterModifier[] modifiers) { throw new PlatformNotSupportedException (); }
public override System.Reflection.MethodInfo[] GetMethods(System.Reflection.BindingFlags bindingAttr) { throw new PlatformNotSupportedException (); }
public override System.Type GetNestedType(string name, System.Reflection.BindingFlags bindingAttr) { throw new PlatformNotSupportedException (); }
public override System.Type[] GetNestedTypes(System.Reflection.BindingFlags bindingAttr) { throw new PlatformNotSupportedException (); }
public override System.Reflection.PropertyInfo[] GetProperties(System.Reflection.BindingFlags bindingAttr) { throw new PlatformNotSupportedException (); }
protected override System.Reflection.PropertyInfo GetPropertyImpl(string name, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, System.Type returnType, System.Type[] types, System.Reflection.ParameterModifier[] modifiers) { throw new PlatformNotSupportedException (); }
protected override bool HasElementTypeImpl() { throw new PlatformNotSupportedException (); }
public override object InvokeMember(string name, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, object target, object[] args, System.Reflection.ParameterModifier[] modifiers, System.Globalization.CultureInfo culture, string[] namedParameters) { throw new PlatformNotSupportedException (); }
protected override bool IsArrayImpl() { throw new PlatformNotSupportedException (); }
public override bool IsAssignableFrom(System.Type c) { throw new PlatformNotSupportedException (); }
public override bool IsAssignableFrom (TypeInfo typeInfo) { throw new PlatformNotSupportedException (); }
protected override bool IsByRefImpl() { throw new PlatformNotSupportedException (); }
protected override bool IsCOMObjectImpl() { throw new PlatformNotSupportedException (); }
public override bool IsDefined(System.Type attributeType, bool inherit) { throw new PlatformNotSupportedException (); }
public override bool IsInstanceOfType (object o) { throw new PlatformNotSupportedException (); }
protected override bool IsPointerImpl() { throw new PlatformNotSupportedException (); }
protected override bool IsPrimitiveImpl() { throw new PlatformNotSupportedException (); }
public override bool IsSubclassOf(System.Type c) { throw new PlatformNotSupportedException (); }
protected override bool IsValueTypeImpl() { throw new PlatformNotSupportedException (); }
public override System.Type MakeArrayType() { throw new PlatformNotSupportedException (); }
public override System.Type MakeArrayType(int rank) { throw new PlatformNotSupportedException (); }
public override System.Type MakeByRefType() { throw new PlatformNotSupportedException (); }
public override System.Type MakeGenericType(params System.Type[] typeArguments) { throw new PlatformNotSupportedException (); }
public override System.Type MakePointerType() { throw new PlatformNotSupportedException (); }
public void SetBaseTypeConstraint(System.Type baseTypeConstraint) { throw new PlatformNotSupportedException (); }
public void SetCustomAttribute(System.Reflection.ConstructorInfo con, byte[] binaryAttribute) { throw new PlatformNotSupportedException (); }
public void SetCustomAttribute(System.Reflection.Emit.CustomAttributeBuilder customBuilder) { throw new PlatformNotSupportedException (); }
public void SetGenericParameterAttributes(System.Reflection.GenericParameterAttributes genericParameterAttributes) { throw new PlatformNotSupportedException (); }
public void SetInterfaceConstraints(params System.Type[] interfaceConstraints) { throw new PlatformNotSupportedException (); }
public override string ToString() { throw new PlatformNotSupportedException (); }
}
}

View File

@ -28,6 +28,8 @@
#if !MONO_FEATURE_SRE
using System.Runtime.InteropServices;
namespace System.Reflection.Emit
{
public class ILGenerator
@ -36,7 +38,7 @@ namespace System.Reflection.Emit
{
}
public int ILOffset {
public virtual int ILOffset {
get {
throw new PlatformNotSupportedException ();
}
@ -183,6 +185,8 @@ namespace System.Reflection.Emit
throw new PlatformNotSupportedException ();
}
public virtual void EmitCalli (OpCode opcode, CallingConvention unmanagedCallConv, Type returnType, Type[] parameterTypes) => throw new PlatformNotSupportedException ();
public virtual void EmitWriteLine (LocalBuilder localBuilder)
{
throw new PlatformNotSupportedException ();
@ -213,6 +217,11 @@ namespace System.Reflection.Emit
throw new PlatformNotSupportedException ();
}
public virtual void MarkSequencePoint (System.Diagnostics.SymbolStore.ISymbolDocumentWriter document, int startLine, int startColumn, int endLine, int endColumn)
{
throw new PlatformNotSupportedException ();
}
public virtual void ThrowException (Type excType)
{
throw new PlatformNotSupportedException ();

View File

@ -28,84 +28,62 @@
#if !MONO_FEATURE_SRE
using System;
using System.Collections.Generic;
namespace System.Reflection.Emit
{
public abstract class MethodBuilder : MethodInfo
public sealed partial class MethodBuilder : System.Reflection.MethodInfo
{
public bool InitLocals { get; set; }
internal MethodBuilder() { throw new PlatformNotSupportedException (); }
public override System.Reflection.MethodAttributes Attributes { get { throw new PlatformNotSupportedException (); } }
public override System.Reflection.CallingConventions CallingConvention { get { throw new PlatformNotSupportedException (); } }
public override bool ContainsGenericParameters { get { throw new PlatformNotSupportedException (); } }
public override System.Type DeclaringType { get { throw new PlatformNotSupportedException (); } }
public bool InitLocals { get { throw new PlatformNotSupportedException (); } set { throw new PlatformNotSupportedException (); } }
public override bool IsGenericMethod { get { throw new PlatformNotSupportedException (); } }
public override bool IsGenericMethodDefinition { get { throw new PlatformNotSupportedException (); } }
public override System.RuntimeMethodHandle MethodHandle { get { throw new PlatformNotSupportedException (); } }
public override System.Reflection.Module Module { get { throw new PlatformNotSupportedException (); } }
public override string Name { get { throw new PlatformNotSupportedException (); } }
public override System.Type ReflectedType { get { throw new PlatformNotSupportedException (); } }
public override System.Reflection.ParameterInfo ReturnParameter { get { throw new PlatformNotSupportedException (); } }
public override System.Type ReturnType { get { throw new PlatformNotSupportedException (); } }
public override System.Reflection.ICustomAttributeProvider ReturnTypeCustomAttributes { get { throw new PlatformNotSupportedException (); } }
public string Signature { get { throw new PlatformNotSupportedException (); } }
public override MethodAttributes Attributes {
get {
throw new PlatformNotSupportedException ();
}
}
public override Type DeclaringType {
get {
throw new PlatformNotSupportedException ();
}
}
public override string Name {
get {
throw new PlatformNotSupportedException ();
}
}
public GenericTypeParameterBuilder[] DefineGenericParameters (string[] names)
{
throw new PlatformNotSupportedException ();
}
public ParameterBuilder DefineParameter (int position, ParameterAttributes attributes, string strParamName)
{
throw new PlatformNotSupportedException ();
}
public ILGenerator GetILGenerator ()
{
throw new PlatformNotSupportedException ();
}
public ILGenerator GetILGenerator (int size)
{
throw new PlatformNotSupportedException ();
}
public override System.Reflection.ParameterInfo[] GetParameters ()
{
throw new PlatformNotSupportedException ();
}
public void SetCustomAttribute (CustomAttributeBuilder customBuilder)
{
throw new PlatformNotSupportedException ();
}
public void SetCustomAttribute (ConstructorInfo con, byte[] binaryAttribute)
{
throw new PlatformNotSupportedException ();
}
public void SetImplementationFlags (MethodImplAttributes attributes)
{
throw new PlatformNotSupportedException ();
}
public void SetParameters (Type[] parameterTypes)
{
throw new PlatformNotSupportedException ();
}
public void SetReturnType (Type returnType)
{
throw new PlatformNotSupportedException ();
}
public void SetSignature (Type returnType, Type[] returnTypeRequiredCustomModifiers, Type[] returnTypeOptionalCustomModifiers, Type[] parameterTypes, Type[][] parameterTypeRequiredCustomModifiers, Type[][] parameterTypeOptionalCustomModifiers)
{
throw new PlatformNotSupportedException ();
}
public void AddDeclarativeSecurity (System.Security.Permissions.SecurityAction action, System.Security.PermissionSet pset) { throw new PlatformNotSupportedException (); }
public void CreateMethodBody(byte[] il, int count) { throw new PlatformNotSupportedException (); }
public System.Reflection.Emit.GenericTypeParameterBuilder[] DefineGenericParameters(params string[] names) { throw new PlatformNotSupportedException (); }
public System.Reflection.Emit.ParameterBuilder DefineParameter(int position, System.Reflection.ParameterAttributes attributes, string strParamName) { throw new PlatformNotSupportedException (); }
public override bool Equals(object obj) { throw new PlatformNotSupportedException (); }
public override System.Reflection.MethodInfo GetBaseDefinition() { throw new PlatformNotSupportedException (); }
public override object[] GetCustomAttributes(bool inherit) { throw new PlatformNotSupportedException (); }
public override object[] GetCustomAttributes(System.Type attributeType, bool inherit) { throw new PlatformNotSupportedException (); }
public override System.Type[] GetGenericArguments() { throw new PlatformNotSupportedException (); }
public override System.Reflection.MethodInfo GetGenericMethodDefinition() { throw new PlatformNotSupportedException (); }
public override int GetHashCode() { throw new PlatformNotSupportedException (); }
public System.Reflection.Emit.ILGenerator GetILGenerator() { throw new PlatformNotSupportedException (); }
public System.Reflection.Emit.ILGenerator GetILGenerator(int size) { throw new PlatformNotSupportedException (); }
public override System.Reflection.MethodImplAttributes GetMethodImplementationFlags() { throw new PlatformNotSupportedException (); }
public System.Reflection.Module GetModule() { throw new PlatformNotSupportedException (); }
public override System.Reflection.ParameterInfo[] GetParameters() { throw new PlatformNotSupportedException (); }
public System.Reflection.Emit.MethodToken GetToken() { throw new PlatformNotSupportedException (); }
public override object Invoke(object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, object[] parameters, System.Globalization.CultureInfo culture) { throw new PlatformNotSupportedException (); }
public override bool IsDefined(System.Type attributeType, bool inherit) { throw new PlatformNotSupportedException (); }
public override System.Reflection.MethodInfo MakeGenericMethod(params System.Type[] typeArguments) { throw new PlatformNotSupportedException (); }
public void SetCustomAttribute(System.Reflection.ConstructorInfo con, byte[] binaryAttribute) { throw new PlatformNotSupportedException (); }
public void SetCustomAttribute(System.Reflection.Emit.CustomAttributeBuilder customBuilder) { throw new PlatformNotSupportedException (); }
public void SetImplementationFlags(System.Reflection.MethodImplAttributes attributes) { throw new PlatformNotSupportedException (); }
[Obsolete ("An alternate API is available: Emit the MarshalAs custom attribute instead.")]
public void SetMarshal (UnmanagedMarshal unmanagedMarshal) { throw new PlatformNotSupportedException (); }
public void SetMethodBody(byte[] il, int maxStack, byte[] localSignature, System.Collections.Generic.IEnumerable<System.Reflection.Emit.ExceptionHandler> exceptionHandlers, System.Collections.Generic.IEnumerable<int> tokenFixups) { throw new PlatformNotSupportedException (); }
public void SetParameters(params System.Type[] parameterTypes) { throw new PlatformNotSupportedException (); }
public void SetReturnType(System.Type returnType) { throw new PlatformNotSupportedException (); }
public void SetSignature(System.Type returnType, System.Type[] returnTypeRequiredCustomModifiers, System.Type[] returnTypeOptionalCustomModifiers, System.Type[] parameterTypes, System.Type[][] parameterTypeRequiredCustomModifiers, System.Type[][] parameterTypeOptionalCustomModifiers) { throw new PlatformNotSupportedException (); }
public void SetSymCustomAttribute (string name, byte[] data) { throw new PlatformNotSupportedException (); }
public override string ToString() { throw new PlatformNotSupportedException (); }
}
}

View File

@ -0,0 +1,25 @@
#if !MONO_FEATURE_SRE
using System.Runtime.InteropServices;
namespace System.Reflection.Emit {
public partial class MethodRental : _MethodRental {
private MethodRental () {}
public const int JitImmediate = 1;
public const int JitOnDemand = 0;
public static void SwapMethodBody (Type cls, int methodtoken, IntPtr rgIL, int methodSize, int flags) => throw new PlatformNotSupportedException ();
void _MethodRental.GetIDsOfNames ([In] ref Guid riid, IntPtr rgszNames, uint cNames, uint lcid, IntPtr rgDispId) => throw new PlatformNotSupportedException ();
void _MethodRental.GetTypeInfo (uint iTInfo, uint lcid, IntPtr ppTInfo) => throw new PlatformNotSupportedException ();
void _MethodRental.GetTypeInfoCount (out uint pcTInfo) => throw new PlatformNotSupportedException ();
void _MethodRental.Invoke (uint dispIdMember, [In] ref Guid riid, uint lcid, short wFlags, IntPtr pDispParams, IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr) => throw new PlatformNotSupportedException ();
}
}
#endif

View File

@ -30,93 +30,186 @@
namespace System.Reflection.Emit
{
public abstract class ModuleBuilder : Module
{
public void CreateGlobalFunctions ()
{
throw new PlatformNotSupportedException ();
}
public partial class ModuleBuilder : System.Reflection.Module
{
internal ModuleBuilder() => throw new PlatformNotSupportedException();
public override System.Reflection.Assembly Assembly { get { throw new PlatformNotSupportedException(); } }
public override string FullyQualifiedName { get { throw new PlatformNotSupportedException(); } }
public override int MetadataToken { get { throw new PlatformNotSupportedException(); } }
public override System.Guid ModuleVersionId { get { throw new PlatformNotSupportedException(); } }
public override string Name { get { throw new PlatformNotSupportedException(); } }
public override string ScopeName { get { throw new PlatformNotSupportedException(); } }
public void CreateGlobalFunctions() => throw new PlatformNotSupportedException();
public System.Diagnostics.SymbolStore.ISymbolDocumentWriter DefineDocument (string url, System.Guid language, System.Guid languageVendor, System.Guid documentType) => throw new PlatformNotSupportedException ();
public System.Reflection.Emit.EnumBuilder DefineEnum(string name, System.Reflection.TypeAttributes visibility, System.Type underlyingType) { throw new PlatformNotSupportedException(); }
public System.Reflection.Emit.MethodBuilder DefineGlobalMethod(string name, System.Reflection.MethodAttributes attributes, System.Reflection.CallingConventions callingConvention, System.Type returnType, System.Type[] parameterTypes) { throw new PlatformNotSupportedException(); }
public System.Reflection.Emit.MethodBuilder DefineGlobalMethod(string name, System.Reflection.MethodAttributes attributes, System.Reflection.CallingConventions callingConvention, System.Type returnType, System.Type[] requiredReturnTypeCustomModifiers, System.Type[] optionalReturnTypeCustomModifiers, System.Type[] parameterTypes, System.Type[][] requiredParameterTypeCustomModifiers, System.Type[][] optionalParameterTypeCustomModifiers) { throw new PlatformNotSupportedException(); }
public System.Reflection.Emit.MethodBuilder DefineGlobalMethod(string name, System.Reflection.MethodAttributes attributes, System.Type returnType, System.Type[] parameterTypes) { throw new PlatformNotSupportedException(); }
public System.Reflection.Emit.FieldBuilder DefineInitializedData(string name, byte[] data, System.Reflection.FieldAttributes attributes) { throw new PlatformNotSupportedException(); }
public void DefineManifestResource (string name, System.IO.Stream stream, System.Reflection.ResourceAttributes attribute) => throw new PlatformNotSupportedException ();
public System.Reflection.Emit.MethodBuilder DefinePInvokeMethod(string name, string dllName, System.Reflection.MethodAttributes attributes, System.Reflection.CallingConventions callingConvention, System.Type returnType, System.Type[] parameterTypes, System.Runtime.InteropServices.CallingConvention nativeCallConv, System.Runtime.InteropServices.CharSet nativeCharSet) { throw new PlatformNotSupportedException(); }
public System.Reflection.Emit.MethodBuilder DefinePInvokeMethod(string name, string dllName, string entryName, System.Reflection.MethodAttributes attributes, System.Reflection.CallingConventions callingConvention, System.Type returnType, System.Type[] parameterTypes, System.Runtime.InteropServices.CallingConvention nativeCallConv, System.Runtime.InteropServices.CharSet nativeCharSet) { throw new PlatformNotSupportedException(); }
public System.Resources.IResourceWriter DefineResource (string name, string description) => throw new PlatformNotSupportedException ();
public System.Resources.IResourceWriter DefineResource (string name, string description, System.Reflection.ResourceAttributes attribute) => throw new PlatformNotSupportedException ();
public void DefineUnmanagedResource (byte[] resource) => throw new PlatformNotSupportedException ();
public void DefineUnmanagedResource (string resourceFileName) => throw new PlatformNotSupportedException ();
public System.Reflection.Emit.TypeBuilder DefineType(string name) { throw new PlatformNotSupportedException(); }
public System.Reflection.Emit.TypeBuilder DefineType(string name, System.Reflection.TypeAttributes attr) { throw new PlatformNotSupportedException(); }
public System.Reflection.Emit.TypeBuilder DefineType(string name, System.Reflection.TypeAttributes attr, System.Type parent) { throw new PlatformNotSupportedException(); }
public System.Reflection.Emit.TypeBuilder DefineType(string name, System.Reflection.TypeAttributes attr, System.Type parent, int typesize) { throw new PlatformNotSupportedException(); }
public System.Reflection.Emit.TypeBuilder DefineType(string name, System.Reflection.TypeAttributes attr, System.Type parent, System.Reflection.Emit.PackingSize packsize) { throw new PlatformNotSupportedException(); }
public System.Reflection.Emit.TypeBuilder DefineType(string name, System.Reflection.TypeAttributes attr, System.Type parent, System.Reflection.Emit.PackingSize packingSize, int typesize) { throw new PlatformNotSupportedException(); }
public System.Reflection.Emit.TypeBuilder DefineType(string name, System.Reflection.TypeAttributes attr, System.Type parent, System.Type[] interfaces) { throw new PlatformNotSupportedException(); }
public System.Reflection.Emit.FieldBuilder DefineUninitializedData(string name, int size, System.Reflection.FieldAttributes attributes) { throw new PlatformNotSupportedException(); }
public override bool Equals(object obj) { throw new PlatformNotSupportedException(); }
public System.Reflection.MethodInfo GetArrayMethod(System.Type arrayClass, string methodName, System.Reflection.CallingConventions callingConvention, System.Type returnType, System.Type[] parameterTypes) { throw new PlatformNotSupportedException(); }
public System.Reflection.Emit.MethodToken GetArrayMethodToken(System.Type arrayClass, string methodName, System.Reflection.CallingConventions callingConvention, System.Type returnType, System.Type[] parameterTypes) { throw new PlatformNotSupportedException(); }
public System.Reflection.Emit.MethodToken GetConstructorToken(System.Reflection.ConstructorInfo con) { throw new PlatformNotSupportedException(); }
public System.Reflection.Emit.MethodToken GetConstructorToken(System.Reflection.ConstructorInfo constructor, System.Collections.Generic.IEnumerable<System.Type> optionalParameterTypes) { throw new PlatformNotSupportedException(); }
public override object[] GetCustomAttributes (bool inherit) { throw new PlatformNotSupportedException(); }
public override object[] GetCustomAttributes (System.Type attributeType, bool inherit) { throw new PlatformNotSupportedException(); }
public override System.Reflection.FieldInfo GetField (string name, System.Reflection.BindingFlags bindingAttr) { throw new PlatformNotSupportedException(); }
public override System.Reflection.FieldInfo[] GetFields (System.Reflection.BindingFlags bindingFlags) { throw new PlatformNotSupportedException(); }
public System.Reflection.Emit.FieldToken GetFieldToken(System.Reflection.FieldInfo field) { throw new PlatformNotSupportedException(); }
public override int GetHashCode() { throw new PlatformNotSupportedException(); }
protected override System.Reflection.MethodInfo GetMethodImpl (string name, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, System.Reflection.CallingConventions callConvention, System.Type[] types, System.Reflection.ParameterModifier[] modifiers) { throw new PlatformNotSupportedException(); }
public override System.Reflection.MethodInfo[] GetMethods (System.Reflection.BindingFlags bindingFlags) { throw new PlatformNotSupportedException(); }
public System.Reflection.Emit.MethodToken GetMethodToken(System.Reflection.MethodInfo method) { throw new PlatformNotSupportedException(); }
public System.Reflection.Emit.MethodToken GetMethodToken(System.Reflection.MethodInfo method, System.Collections.Generic.IEnumerable<System.Type> optionalParameterTypes) { throw new PlatformNotSupportedException(); }
public System.Reflection.Emit.SignatureToken GetSignatureToken(byte[] sigBytes, int sigLength) { throw new PlatformNotSupportedException(); }
public System.Reflection.Emit.SignatureToken GetSignatureToken(System.Reflection.Emit.SignatureHelper sigHelper) { throw new PlatformNotSupportedException(); }
public System.Reflection.Emit.StringToken GetStringConstant(string str) { throw new PlatformNotSupportedException(); }
public System.Diagnostics.SymbolStore.ISymbolWriter GetSymWriter () => throw new PlatformNotSupportedException ();
public override System.Type GetType (string className) { throw new PlatformNotSupportedException(); }
public override System.Type GetType (string className, bool ignoreCase) { throw new PlatformNotSupportedException(); }
public override System.Type GetType (string className, bool throwOnError, bool ignoreCase) { throw new PlatformNotSupportedException(); }
public override System.Type[] GetTypes () { throw new PlatformNotSupportedException(); }
public System.Reflection.Emit.TypeToken GetTypeToken(string name) { throw new PlatformNotSupportedException(); }
public System.Reflection.Emit.TypeToken GetTypeToken(System.Type type) { throw new PlatformNotSupportedException(); }
public override bool IsDefined (System.Type attributeType, bool inherit) { throw new PlatformNotSupportedException(); }
public override bool IsResource () { throw new PlatformNotSupportedException(); }
public bool IsTransient() { throw new PlatformNotSupportedException(); }
public override System.Reflection.FieldInfo ResolveField (int metadataToken, System.Type[] genericTypeArguments, System.Type[] genericMethodArguments) { throw new PlatformNotSupportedException(); }
public override System.Reflection.MemberInfo ResolveMember (int metadataToken, System.Type[] genericTypeArguments, System.Type[] genericMethodArguments) { throw new PlatformNotSupportedException(); }
public override System.Reflection.MethodBase ResolveMethod (int metadataToken, System.Type[] genericTypeArguments, System.Type[] genericMethodArguments) { throw new PlatformNotSupportedException(); }
public override byte[] ResolveSignature (int metadataToken) { throw new PlatformNotSupportedException(); }
public override string ResolveString (int metadataToken) { throw new PlatformNotSupportedException(); }
public override System.Type ResolveType (int metadataToken, System.Type[] genericTypeArguments, System.Type[] genericMethodArguments) { throw new PlatformNotSupportedException(); }
public void SetCustomAttribute(System.Reflection.ConstructorInfo con, byte[] binaryAttribute) => throw new PlatformNotSupportedException();
public void SetCustomAttribute(System.Reflection.Emit.CustomAttributeBuilder customBuilder) => throw new PlatformNotSupportedException();
public void SetSymCustomAttribute (string name, byte[] data) => throw new PlatformNotSupportedException ();
public void SetUserEntryPoint(System.Reflection.MethodInfo entryPoint) => throw new PlatformNotSupportedException();
}
public EnumBuilder DefineEnum (string name, TypeAttributes visibility, Type underlyingType)
{
throw new PlatformNotSupportedException ();
}
public readonly partial struct MethodToken : System.IEquatable<MethodToken>
{
public static readonly System.Reflection.Emit.MethodToken Empty;
public int Token { get { throw new PlatformNotSupportedException(); } }
public override bool Equals(object obj) { throw new PlatformNotSupportedException(); }
public bool Equals(System.Reflection.Emit.MethodToken obj) { throw new PlatformNotSupportedException(); }
public override int GetHashCode() { throw new PlatformNotSupportedException(); }
public static bool operator ==(System.Reflection.Emit.MethodToken a, System.Reflection.Emit.MethodToken b) { throw new PlatformNotSupportedException(); }
public static bool operator !=(System.Reflection.Emit.MethodToken a, System.Reflection.Emit.MethodToken b) { throw new PlatformNotSupportedException(); }
}
public MethodBuilder DefineGlobalMethod (string name, MethodAttributes attributes, Type returnType, Type[] parameterTypes)
{
throw new PlatformNotSupportedException ();
}
public readonly partial struct SignatureToken : System.IEquatable<SignatureToken>
{
public static readonly System.Reflection.Emit.SignatureToken Empty;
public int Token { get { throw new PlatformNotSupportedException(); } }
public override bool Equals(object obj) { throw new PlatformNotSupportedException(); }
public bool Equals(System.Reflection.Emit.SignatureToken obj) { throw new PlatformNotSupportedException(); }
public override int GetHashCode() { throw new PlatformNotSupportedException(); }
public static bool operator ==(System.Reflection.Emit.SignatureToken a, System.Reflection.Emit.SignatureToken b) { throw new PlatformNotSupportedException(); }
public static bool operator !=(System.Reflection.Emit.SignatureToken a, System.Reflection.Emit.SignatureToken b) { throw new PlatformNotSupportedException(); }
}
public MethodBuilder DefineGlobalMethod (string name, MethodAttributes attributes, CallingConventions callingConvention, Type returnType, Type[] parameterTypes)
{
throw new PlatformNotSupportedException ();
}
public readonly partial struct FieldToken : System.IEquatable<FieldToken>
{
public static readonly System.Reflection.Emit.FieldToken Empty;
public int Token { get { throw new PlatformNotSupportedException(); } }
public override bool Equals(object obj) { throw new PlatformNotSupportedException(); }
public bool Equals(System.Reflection.Emit.FieldToken obj) { throw new PlatformNotSupportedException(); }
public override int GetHashCode() { throw new PlatformNotSupportedException(); }
public static bool operator ==(System.Reflection.Emit.FieldToken a, System.Reflection.Emit.FieldToken b) { throw new PlatformNotSupportedException(); }
public static bool operator !=(System.Reflection.Emit.FieldToken a, System.Reflection.Emit.FieldToken b) { throw new PlatformNotSupportedException(); }
}
public MethodBuilder DefineGlobalMethod (string name, MethodAttributes attributes, CallingConventions callingConvention, Type returnType, Type[] requiredReturnTypeCustomModifiers, Type[] optionalReturnTypeCustomModifiers, Type[] parameterTypes, Type[][] requiredParameterTypeCustomModifiers, Type[][] optionalParameterTypeCustomModifiers)
{
throw new PlatformNotSupportedException ();
}
public readonly partial struct StringToken : System.IEquatable<StringToken>
{
public int Token { get { throw new PlatformNotSupportedException(); } }
public override bool Equals(object obj) { throw new PlatformNotSupportedException(); }
public bool Equals(System.Reflection.Emit.StringToken obj) { throw new PlatformNotSupportedException(); }
public override int GetHashCode() { throw new PlatformNotSupportedException(); }
public static bool operator ==(System.Reflection.Emit.StringToken a, System.Reflection.Emit.StringToken b) { throw new PlatformNotSupportedException(); }
public static bool operator !=(System.Reflection.Emit.StringToken a, System.Reflection.Emit.StringToken b) { throw new PlatformNotSupportedException(); }
}
public FieldBuilder DefineInitializedData (string name, byte[] data, FieldAttributes attributes)
{
throw new PlatformNotSupportedException ();
}
public readonly partial struct TypeToken : System.IEquatable<TypeToken>
{
public static readonly System.Reflection.Emit.TypeToken Empty;
public int Token { get { throw new PlatformNotSupportedException(); } }
public override bool Equals(object obj) { throw new PlatformNotSupportedException(); }
public bool Equals(System.Reflection.Emit.TypeToken obj) { throw new PlatformNotSupportedException(); }
public override int GetHashCode() { throw new PlatformNotSupportedException(); }
public static bool operator ==(System.Reflection.Emit.TypeToken a, System.Reflection.Emit.TypeToken b) { throw new PlatformNotSupportedException(); }
public static bool operator !=(System.Reflection.Emit.TypeToken a, System.Reflection.Emit.TypeToken b) { throw new PlatformNotSupportedException(); }
}
public TypeBuilder DefineType (string name)
{
throw new PlatformNotSupportedException ();
}
public partial class DynamicILInfo
{
internal DynamicILInfo() => throw new PlatformNotSupportedException();
public System.Reflection.Emit.DynamicMethod DynamicMethod { get { throw new PlatformNotSupportedException(); } }
public int GetTokenFor(byte[] signature) { throw new PlatformNotSupportedException(); }
public int GetTokenFor(System.Reflection.Emit.DynamicMethod method) { throw new PlatformNotSupportedException(); }
public int GetTokenFor(System.RuntimeFieldHandle field) { throw new PlatformNotSupportedException(); }
public int GetTokenFor(System.RuntimeFieldHandle field, System.RuntimeTypeHandle contextType) { throw new PlatformNotSupportedException(); }
public int GetTokenFor(System.RuntimeMethodHandle method) { throw new PlatformNotSupportedException(); }
public int GetTokenFor(System.RuntimeMethodHandle method, System.RuntimeTypeHandle contextType) { throw new PlatformNotSupportedException(); }
public int GetTokenFor(System.RuntimeTypeHandle type) { throw new PlatformNotSupportedException(); }
public int GetTokenFor(string literal) { throw new PlatformNotSupportedException(); }
[System.CLSCompliantAttribute(false)]
public unsafe void SetCode(byte* code, int codeSize, int maxStackSize) => throw new PlatformNotSupportedException();
public void SetCode(byte[] code, int maxStackSize) => throw new PlatformNotSupportedException();
[System.CLSCompliantAttribute(false)]
public unsafe void SetExceptions(byte* exceptions, int exceptionsSize) => throw new PlatformNotSupportedException();
public void SetExceptions(byte[] exceptions) => throw new PlatformNotSupportedException();
[System.CLSCompliantAttribute(false)]
public unsafe void SetLocalSignature(byte* localSignature, int signatureSize) => throw new PlatformNotSupportedException();
public void SetLocalSignature(byte[] localSignature) => throw new PlatformNotSupportedException();
}
public TypeBuilder DefineType (string name, TypeAttributes attr)
{
throw new PlatformNotSupportedException ();
}
public readonly partial struct EventToken : System.IEquatable<EventToken>
{
public static readonly System.Reflection.Emit.EventToken Empty;
public int Token { get { throw new PlatformNotSupportedException(); } }
public override bool Equals(object obj) { throw new PlatformNotSupportedException(); }
public bool Equals(System.Reflection.Emit.EventToken obj) { throw new PlatformNotSupportedException(); }
public override int GetHashCode() { throw new PlatformNotSupportedException(); }
public static bool operator ==(System.Reflection.Emit.EventToken a, System.Reflection.Emit.EventToken b) { throw new PlatformNotSupportedException(); }
public static bool operator !=(System.Reflection.Emit.EventToken a, System.Reflection.Emit.EventToken b) { throw new PlatformNotSupportedException(); }
}
public TypeBuilder DefineType (string name, TypeAttributes attr, Type parent)
{
throw new PlatformNotSupportedException ();
}
public readonly partial struct ParameterToken : System.IEquatable<ParameterToken>
{
public static readonly System.Reflection.Emit.ParameterToken Empty;
public int Token { get { throw new PlatformNotSupportedException(); } }
public override bool Equals(object obj) { throw new PlatformNotSupportedException(); }
public bool Equals(System.Reflection.Emit.ParameterToken obj) { throw new PlatformNotSupportedException(); }
public override int GetHashCode() { throw new PlatformNotSupportedException(); }
public static bool operator ==(System.Reflection.Emit.ParameterToken a, System.Reflection.Emit.ParameterToken b) { throw new PlatformNotSupportedException(); }
public static bool operator !=(System.Reflection.Emit.ParameterToken a, System.Reflection.Emit.ParameterToken b) { throw new PlatformNotSupportedException(); }
}
public TypeBuilder DefineType (string name, TypeAttributes attr, Type parent, int typesize)
{
throw new PlatformNotSupportedException ();
}
public TypeBuilder DefineType (string name, TypeAttributes attr, Type parent, PackingSize packsize)
{
throw new PlatformNotSupportedException ();
}
public TypeBuilder DefineType (string name, TypeAttributes attr, Type parent, Type[] interfaces)
{
throw new PlatformNotSupportedException ();
}
public TypeBuilder DefineType (string name, TypeAttributes attr, Type parent, PackingSize packingSize, int typesize)
{
throw new PlatformNotSupportedException ();
}
public FieldBuilder DefineUninitializedData (string name, int size, FieldAttributes attributes)
{
throw new PlatformNotSupportedException ();
}
public MethodInfo GetArrayMethod (Type arrayClass, string methodName, CallingConventions callingConvention, Type returnType, Type[] parameterTypes)
{
throw new PlatformNotSupportedException ();
}
public void SetCustomAttribute (CustomAttributeBuilder customBuilder)
{
throw new PlatformNotSupportedException ();
}
public void SetCustomAttribute (ConstructorInfo con, byte[] binaryAttribute)
{
throw new PlatformNotSupportedException ();
}
}
public readonly partial struct PropertyToken : System.IEquatable<PropertyToken>
{
public static readonly System.Reflection.Emit.PropertyToken Empty;
public int Token { get { throw new PlatformNotSupportedException(); } }
public override bool Equals(object obj) { throw new PlatformNotSupportedException(); }
public bool Equals(System.Reflection.Emit.PropertyToken obj) { throw new PlatformNotSupportedException(); }
public override int GetHashCode() { throw new PlatformNotSupportedException(); }
public static bool operator ==(System.Reflection.Emit.PropertyToken a, System.Reflection.Emit.PropertyToken b) { throw new PlatformNotSupportedException(); }
public static bool operator !=(System.Reflection.Emit.PropertyToken a, System.Reflection.Emit.PropertyToken b) { throw new PlatformNotSupportedException(); }
}
}
#endif

View File

@ -36,7 +36,7 @@ namespace System.Reflection.Emit
{
}
public int Attributes {
public virtual int Attributes {
get {
throw new PlatformNotSupportedException ();
}
@ -60,13 +60,13 @@ namespace System.Reflection.Emit
}
}
public string Name {
public virtual string Name {
get {
throw new PlatformNotSupportedException ();
}
}
public int Position {
public virtual int Position {
get {
throw new PlatformNotSupportedException ();
}
@ -86,6 +86,11 @@ namespace System.Reflection.Emit
{
throw new PlatformNotSupportedException ();
}
[Obsolete ("An alternate API is available: Emit the MarshalAs custom attribute instead.")]
public virtual void SetMarshal (UnmanagedMarshal unmanagedMarshal) => throw new PlatformNotSupportedException ();
public virtual ParameterToken GetToken() => throw new PlatformNotSupportedException ();
}
}

View File

@ -30,78 +30,35 @@
namespace System.Reflection.Emit
{
public abstract class PropertyBuilder : PropertyInfo
public sealed partial class PropertyBuilder : System.Reflection.PropertyInfo
{
public override PropertyAttributes Attributes {
get {
throw new PlatformNotSupportedException ();
}
}
public override bool CanRead {
get {
throw new PlatformNotSupportedException ();
}
}
public override bool CanWrite {
get {
throw new PlatformNotSupportedException ();
}
}
public override Type DeclaringType {
get {
throw new PlatformNotSupportedException ();
}
}
public override string Name {
get {
throw new PlatformNotSupportedException ();
}
}
public override Type PropertyType {
get {
throw new PlatformNotSupportedException ();
}
}
public void AddOtherMethod (MethodBuilder mdBuilder)
{
throw new PlatformNotSupportedException ();
}
public void SetConstant (object defaultValue)
{
throw new PlatformNotSupportedException ();
}
public void SetCustomAttribute (CustomAttributeBuilder customBuilder)
{
throw new PlatformNotSupportedException ();
}
public void SetCustomAttribute (ConstructorInfo con, byte[] binaryAttribute)
{
throw new PlatformNotSupportedException ();
}
public void SetGetMethod (MethodBuilder mdBuilder)
{
throw new PlatformNotSupportedException ();
}
public void SetSetMethod (MethodBuilder mdBuilder)
{
throw new PlatformNotSupportedException ();
}
public override ParameterInfo[] GetIndexParameters ()
{
throw new PlatformNotSupportedException ();
}
internal PropertyBuilder() { throw new PlatformNotSupportedException (); }
public override System.Reflection.PropertyAttributes Attributes { get { throw new PlatformNotSupportedException (); } }
public override bool CanRead { get { throw new PlatformNotSupportedException (); } }
public override bool CanWrite { get { throw new PlatformNotSupportedException (); } }
public override System.Type DeclaringType { get { throw new PlatformNotSupportedException (); } }
public override System.Reflection.Module Module { get { throw new PlatformNotSupportedException (); } }
public override string Name { get { throw new PlatformNotSupportedException (); } }
public System.Reflection.Emit.PropertyToken PropertyToken { get { throw new PlatformNotSupportedException (); } }
public override System.Type PropertyType { get { throw new PlatformNotSupportedException (); } }
public override System.Type ReflectedType { get { throw new PlatformNotSupportedException (); } }
public void AddOtherMethod(System.Reflection.Emit.MethodBuilder mdBuilder) { throw new PlatformNotSupportedException (); }
public override System.Reflection.MethodInfo[] GetAccessors(bool nonPublic) { throw new PlatformNotSupportedException (); }
public override object[] GetCustomAttributes(bool inherit) { throw new PlatformNotSupportedException (); }
public override object[] GetCustomAttributes(System.Type attributeType, bool inherit) { throw new PlatformNotSupportedException (); }
public override System.Reflection.MethodInfo GetGetMethod(bool nonPublic) { throw new PlatformNotSupportedException (); }
public override System.Reflection.ParameterInfo[] GetIndexParameters() { throw new PlatformNotSupportedException (); }
public override System.Reflection.MethodInfo GetSetMethod(bool nonPublic) { throw new PlatformNotSupportedException (); }
public override object GetValue(object obj, object[] index) { throw new PlatformNotSupportedException (); }
public override object GetValue(object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, object[] index, System.Globalization.CultureInfo culture) { throw new PlatformNotSupportedException (); }
public override bool IsDefined(System.Type attributeType, bool inherit) { throw new PlatformNotSupportedException (); }
public void SetConstant(object defaultValue) { throw new PlatformNotSupportedException (); }
public void SetCustomAttribute(System.Reflection.ConstructorInfo con, byte[] binaryAttribute) { throw new PlatformNotSupportedException (); }
public void SetCustomAttribute(System.Reflection.Emit.CustomAttributeBuilder customBuilder) { throw new PlatformNotSupportedException (); }
public void SetGetMethod(System.Reflection.Emit.MethodBuilder mdBuilder) { throw new PlatformNotSupportedException (); }
public void SetSetMethod(System.Reflection.Emit.MethodBuilder mdBuilder) { throw new PlatformNotSupportedException (); }
public override void SetValue(object obj, object value, object[] index) { throw new PlatformNotSupportedException (); }
public override void SetValue(object obj, object value, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, object[] index, System.Globalization.CultureInfo culture) { throw new PlatformNotSupportedException (); }
}
}

View File

@ -28,9 +28,11 @@
#if !MONO_FEATURE_SRE
using System.Runtime.InteropServices;
namespace System.Reflection.Emit
{
public class SignatureHelper
public class SignatureHelper : _SignatureHelper
{
SignatureHelper ()
{
@ -110,6 +112,24 @@ namespace System.Reflection.Emit
{
throw new PlatformNotSupportedException ();
}
public static SignatureHelper GetMethodSigHelper (Module mod, CallingConvention unmanagedCallConv, Type returnType) =>
throw new PlatformNotSupportedException ();
public static SignatureHelper GetMethodSigHelper (CallingConvention unmanagedCallingConvention, Type returnType) =>
throw new PlatformNotSupportedException ();
public override bool Equals (object obj) => throw new PlatformNotSupportedException ();
public override int GetHashCode () => throw new PlatformNotSupportedException ();
public override string ToString () => throw new PlatformNotSupportedException ();
void _SignatureHelper.GetIDsOfNames ([In] ref Guid riid, IntPtr rgszNames, uint cNames, uint lcid, IntPtr rgDispId) => throw new PlatformNotSupportedException ();
void _SignatureHelper.GetTypeInfo (uint iTInfo, uint lcid, IntPtr ppTInfo) => throw new PlatformNotSupportedException ();
void _SignatureHelper.GetTypeInfoCount (out uint pcTInfo) => throw new PlatformNotSupportedException ();
void _SignatureHelper.Invoke (uint dispIdMember, [In] ref Guid riid, uint lcid, short wFlags, IntPtr pDispParams, IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr) => throw new PlatformNotSupportedException ();
}
}

View File

@ -28,256 +28,122 @@
#if !MONO_FEATURE_SRE
using System.Runtime.InteropServices;
namespace System.Reflection.Emit
{
public abstract class TypeBuilder : TypeInfo
public sealed partial class TypeBuilder : System.Reflection.TypeInfo
{
internal TypeBuilder() { throw new PlatformNotSupportedException (); }
public const int UnspecifiedTypeSize = 0;
public override System.Reflection.Assembly Assembly { get { throw new PlatformNotSupportedException (); } }
public override string AssemblyQualifiedName { get { throw new PlatformNotSupportedException (); } }
public override System.Type BaseType { get { throw new PlatformNotSupportedException (); } }
public override bool ContainsGenericParameters { get { throw new PlatformNotSupportedException (); } }
public override System.Reflection.MethodBase DeclaringMethod { get { throw new PlatformNotSupportedException (); } }
public override System.Type DeclaringType { get { throw new PlatformNotSupportedException (); } }
public override string FullName { get { throw new PlatformNotSupportedException (); } }
public override System.Reflection.GenericParameterAttributes GenericParameterAttributes { get { throw new PlatformNotSupportedException (); } }
public override int GenericParameterPosition { get { throw new PlatformNotSupportedException (); } }
public override System.Guid GUID { get { throw new PlatformNotSupportedException (); } }
public override bool IsConstructedGenericType { get { throw new PlatformNotSupportedException (); } }
public override bool IsGenericParameter { get { throw new PlatformNotSupportedException (); } }
public override bool IsGenericType { get { throw new PlatformNotSupportedException (); } }
public override bool IsGenericTypeDefinition { get { throw new PlatformNotSupportedException (); } }
public override bool IsTypeDefinition { get { throw new PlatformNotSupportedException (); } }
public override System.Reflection.Module Module { get { throw new PlatformNotSupportedException (); } }
public override string Name { get { throw new PlatformNotSupportedException (); } }
public override string Namespace { get { throw new PlatformNotSupportedException (); } }
public System.Reflection.Emit.PackingSize PackingSize { get { throw new PlatformNotSupportedException (); } }
public override System.Type ReflectedType { get { throw new PlatformNotSupportedException (); } }
public int Size { get { throw new PlatformNotSupportedException (); } }
public override System.RuntimeTypeHandle TypeHandle { get { throw new PlatformNotSupportedException (); } }
public System.Reflection.Emit.TypeToken TypeToken { get { throw new PlatformNotSupportedException (); } }
public override System.Type UnderlyingSystemType { get { throw new PlatformNotSupportedException (); } }
public PackingSize PackingSize {
get {
throw new PlatformNotSupportedException ();
}
}
public int Size {
get {
throw new PlatformNotSupportedException ();
}
}
public override Assembly Assembly {
get {
throw new PlatformNotSupportedException ();
}
}
public override string AssemblyQualifiedName {
get {
throw new PlatformNotSupportedException ();
}
}
public override Type BaseType {
get {
throw new PlatformNotSupportedException ();
}
}
public override string FullName {
get {
throw new PlatformNotSupportedException ();
}
}
public override Guid GUID {
get {
throw new PlatformNotSupportedException ();
}
}
public override Module Module {
get {
throw new PlatformNotSupportedException ();
}
}
public override string Name {
get {
throw new PlatformNotSupportedException ();
}
}
public override string Namespace {
get {
throw new PlatformNotSupportedException ();
}
}
public void AddInterfaceImplementation (Type interfaceType)
{
throw new PlatformNotSupportedException ();
}
public TypeInfo CreateTypeInfo ()
{
throw new PlatformNotSupportedException ();
}
public ConstructorBuilder DefineConstructor (MethodAttributes attributes, CallingConventions callingConvention, Type[] parameterTypes)
{
throw new PlatformNotSupportedException ();
}
public ConstructorBuilder DefineConstructor (MethodAttributes attributes, CallingConventions callingConvention, Type[] parameterTypes, Type[][] requiredCustomModifiers, Type[][] optionalCustomModifiers)
{
throw new PlatformNotSupportedException ();
}
public ConstructorBuilder DefineDefaultConstructor (MethodAttributes attributes)
{
throw new PlatformNotSupportedException ();
}
public EventBuilder DefineEvent (string name, EventAttributes attributes, Type eventtype)
{
throw new PlatformNotSupportedException ();
}
public FieldBuilder DefineField (string fieldName, Type type, FieldAttributes attributes)
{
throw new PlatformNotSupportedException ();
}
public FieldBuilder DefineField (string fieldName, Type type, Type[] requiredCustomModifiers, Type[] optionalCustomModifiers, FieldAttributes attributes)
{
throw new PlatformNotSupportedException ();
}
public GenericTypeParameterBuilder[] DefineGenericParameters (string[] names)
{
throw new PlatformNotSupportedException ();
}
public FieldBuilder DefineInitializedData (string name, byte[] data, FieldAttributes attributes)
{
throw new PlatformNotSupportedException ();
}
public MethodBuilder DefineMethod (string name, MethodAttributes attributes)
{
throw new PlatformNotSupportedException ();
}
public MethodBuilder DefineMethod (string name, MethodAttributes attributes, CallingConventions callingConvention)
{
throw new PlatformNotSupportedException ();
}
public MethodBuilder DefineMethod (string name, MethodAttributes attributes, Type returnType, Type[] parameterTypes)
{
throw new PlatformNotSupportedException ();
}
public MethodBuilder DefineMethod (string name, MethodAttributes attributes, CallingConventions callingConvention, Type returnType, Type[] parameterTypes)
{
throw new PlatformNotSupportedException ();
}
public MethodBuilder DefineMethod (string name, MethodAttributes attributes, CallingConventions callingConvention, Type returnType, Type[] returnTypeRequiredCustomModifiers, Type[] returnTypeOptionalCustomModifiers, Type[] parameterTypes, Type[][] parameterTypeRequiredCustomModifiers, Type[][] parameterTypeOptionalCustomModifiers)
{
throw new PlatformNotSupportedException ();
}
public void DefineMethodOverride (MethodInfo methodInfoBody, MethodInfo methodInfoDeclaration)
{
throw new PlatformNotSupportedException ();
}
public TypeBuilder DefineNestedType (string name)
{
throw new PlatformNotSupportedException ();
}
public TypeBuilder DefineNestedType (string name, TypeAttributes attr)
{
throw new PlatformNotSupportedException ();
}
public TypeBuilder DefineNestedType (string name, TypeAttributes attr, Type parent)
{
throw new PlatformNotSupportedException ();
}
public TypeBuilder DefineNestedType (string name, TypeAttributes attr, Type parent, int typeSize)
{
throw new PlatformNotSupportedException ();
}
public TypeBuilder DefineNestedType (string name, TypeAttributes attr, Type parent, PackingSize packSize)
{
throw new PlatformNotSupportedException ();
}
public TypeBuilder DefineNestedType (string name, TypeAttributes attr, Type parent, Type[] interfaces)
{
throw new PlatformNotSupportedException ();
}
public TypeBuilder DefineNestedType (string name, TypeAttributes attr, Type parent, PackingSize packSize, int typeSize)
{
throw new PlatformNotSupportedException ();
}
public PropertyBuilder DefineProperty (string name, PropertyAttributes attributes, Type returnType, Type[] parameterTypes)
{
throw new PlatformNotSupportedException ();
}
public PropertyBuilder DefineProperty (string name, PropertyAttributes attributes, CallingConventions callingConvention, Type returnType, Type[] parameterTypes)
{
throw new PlatformNotSupportedException ();
}
public PropertyBuilder DefineProperty (string name, PropertyAttributes attributes, Type returnType, Type[] returnTypeRequiredCustomModifiers, Type[] returnTypeOptionalCustomModifiers, Type[] parameterTypes, Type[][] parameterTypeRequiredCustomModifiers, Type[][] parameterTypeOptionalCustomModifiers)
{
throw new PlatformNotSupportedException ();
}
public PropertyBuilder DefineProperty (string name, PropertyAttributes attributes, CallingConventions callingConvention, Type returnType, Type[] returnTypeRequiredCustomModifiers, Type[] returnTypeOptionalCustomModifiers, Type[] parameterTypes, Type[][] parameterTypeRequiredCustomModifiers, Type[][] parameterTypeOptionalCustomModifiers)
{
throw new PlatformNotSupportedException ();
}
public ConstructorBuilder DefineTypeInitializer ()
{
throw new PlatformNotSupportedException ();
}
public FieldBuilder DefineUninitializedData (string name, int size, FieldAttributes attributes)
{
throw new PlatformNotSupportedException ();
}
public static ConstructorInfo GetConstructor (Type type, ConstructorInfo constructor)
{
throw new PlatformNotSupportedException ();
}
public static FieldInfo GetField (Type type, FieldInfo field)
{
throw new PlatformNotSupportedException ();
}
public static MethodInfo GetMethod (Type type, MethodInfo method)
{
throw new PlatformNotSupportedException ();
}
public bool IsCreated ()
{
throw new PlatformNotSupportedException ();
}
public void SetCustomAttribute (CustomAttributeBuilder customBuilder)
{
throw new PlatformNotSupportedException ();
}
public void SetCustomAttribute (ConstructorInfo con, byte[] binaryAttribute)
{
throw new PlatformNotSupportedException ();
}
public void SetParent (Type parent)
{
throw new PlatformNotSupportedException ();
}
public override Type GetElementType ()
{
throw new PlatformNotSupportedException ();
}
public void AddDeclarativeSecurity (System.Security.Permissions.SecurityAction action, System.Security.PermissionSet pset) { throw new PlatformNotSupportedException (); }
public void AddInterfaceImplementation(System.Type interfaceType) { throw new PlatformNotSupportedException (); }
public System.Type CreateType() { throw new PlatformNotSupportedException (); }
public System.Reflection.TypeInfo CreateTypeInfo() { throw new PlatformNotSupportedException (); }
public System.Reflection.Emit.ConstructorBuilder DefineConstructor(System.Reflection.MethodAttributes attributes, System.Reflection.CallingConventions callingConvention, System.Type[] parameterTypes) { throw new PlatformNotSupportedException (); }
public System.Reflection.Emit.ConstructorBuilder DefineConstructor(System.Reflection.MethodAttributes attributes, System.Reflection.CallingConventions callingConvention, System.Type[] parameterTypes, System.Type[][] requiredCustomModifiers, System.Type[][] optionalCustomModifiers) { throw new PlatformNotSupportedException (); }
public System.Reflection.Emit.ConstructorBuilder DefineDefaultConstructor(System.Reflection.MethodAttributes attributes) { throw new PlatformNotSupportedException (); }
public System.Reflection.Emit.EventBuilder DefineEvent(string name, System.Reflection.EventAttributes attributes, System.Type eventtype) { throw new PlatformNotSupportedException (); }
public System.Reflection.Emit.FieldBuilder DefineField(string fieldName, System.Type type, System.Reflection.FieldAttributes attributes) { throw new PlatformNotSupportedException (); }
public System.Reflection.Emit.FieldBuilder DefineField(string fieldName, System.Type type, System.Type[] requiredCustomModifiers, System.Type[] optionalCustomModifiers, System.Reflection.FieldAttributes attributes) { throw new PlatformNotSupportedException (); }
public System.Reflection.Emit.GenericTypeParameterBuilder[] DefineGenericParameters(params string[] names) { throw new PlatformNotSupportedException (); }
public System.Reflection.Emit.FieldBuilder DefineInitializedData(string name, byte[] data, System.Reflection.FieldAttributes attributes) { throw new PlatformNotSupportedException (); }
public System.Reflection.Emit.MethodBuilder DefineMethod(string name, System.Reflection.MethodAttributes attributes) { throw new PlatformNotSupportedException (); }
public System.Reflection.Emit.MethodBuilder DefineMethod(string name, System.Reflection.MethodAttributes attributes, System.Reflection.CallingConventions callingConvention) { throw new PlatformNotSupportedException (); }
public System.Reflection.Emit.MethodBuilder DefineMethod(string name, System.Reflection.MethodAttributes attributes, System.Reflection.CallingConventions callingConvention, System.Type returnType, System.Type[] parameterTypes) { throw new PlatformNotSupportedException (); }
public System.Reflection.Emit.MethodBuilder DefineMethod(string name, System.Reflection.MethodAttributes attributes, System.Reflection.CallingConventions callingConvention, System.Type returnType, System.Type[] returnTypeRequiredCustomModifiers, System.Type[] returnTypeOptionalCustomModifiers, System.Type[] parameterTypes, System.Type[][] parameterTypeRequiredCustomModifiers, System.Type[][] parameterTypeOptionalCustomModifiers) { throw new PlatformNotSupportedException (); }
public System.Reflection.Emit.MethodBuilder DefineMethod(string name, System.Reflection.MethodAttributes attributes, System.Type returnType, System.Type[] parameterTypes) { throw new PlatformNotSupportedException (); }
public void DefineMethodOverride(System.Reflection.MethodInfo methodInfoBody, System.Reflection.MethodInfo methodInfoDeclaration) { throw new PlatformNotSupportedException (); }
public System.Reflection.Emit.TypeBuilder DefineNestedType(string name) { throw new PlatformNotSupportedException (); }
public System.Reflection.Emit.TypeBuilder DefineNestedType(string name, System.Reflection.TypeAttributes attr) { throw new PlatformNotSupportedException (); }
public System.Reflection.Emit.TypeBuilder DefineNestedType(string name, System.Reflection.TypeAttributes attr, System.Type parent) { throw new PlatformNotSupportedException (); }
public System.Reflection.Emit.TypeBuilder DefineNestedType(string name, System.Reflection.TypeAttributes attr, System.Type parent, int typeSize) { throw new PlatformNotSupportedException (); }
public System.Reflection.Emit.TypeBuilder DefineNestedType(string name, System.Reflection.TypeAttributes attr, System.Type parent, System.Reflection.Emit.PackingSize packSize) { throw new PlatformNotSupportedException (); }
public System.Reflection.Emit.TypeBuilder DefineNestedType(string name, System.Reflection.TypeAttributes attr, System.Type parent, System.Reflection.Emit.PackingSize packSize, int typeSize) { throw new PlatformNotSupportedException (); }
public System.Reflection.Emit.TypeBuilder DefineNestedType(string name, System.Reflection.TypeAttributes attr, System.Type parent, System.Type[] interfaces) { throw new PlatformNotSupportedException (); }
public System.Reflection.Emit.MethodBuilder DefinePInvokeMethod(string name, string dllName, System.Reflection.MethodAttributes attributes, System.Reflection.CallingConventions callingConvention, System.Type returnType, System.Type[] parameterTypes, System.Runtime.InteropServices.CallingConvention nativeCallConv, System.Runtime.InteropServices.CharSet nativeCharSet) { throw new PlatformNotSupportedException (); }
public System.Reflection.Emit.MethodBuilder DefinePInvokeMethod(string name, string dllName, string entryName, System.Reflection.MethodAttributes attributes, System.Reflection.CallingConventions callingConvention, System.Type returnType, System.Type[] parameterTypes, System.Runtime.InteropServices.CallingConvention nativeCallConv, System.Runtime.InteropServices.CharSet nativeCharSet) { throw new PlatformNotSupportedException (); }
public System.Reflection.Emit.MethodBuilder DefinePInvokeMethod(string name, string dllName, string entryName, System.Reflection.MethodAttributes attributes, System.Reflection.CallingConventions callingConvention, System.Type returnType, System.Type[] returnTypeRequiredCustomModifiers, System.Type[] returnTypeOptionalCustomModifiers, System.Type[] parameterTypes, System.Type[][] parameterTypeRequiredCustomModifiers, System.Type[][] parameterTypeOptionalCustomModifiers, System.Runtime.InteropServices.CallingConvention nativeCallConv, System.Runtime.InteropServices.CharSet nativeCharSet) { throw new PlatformNotSupportedException (); }
public System.Reflection.Emit.PropertyBuilder DefineProperty(string name, System.Reflection.PropertyAttributes attributes, System.Reflection.CallingConventions callingConvention, System.Type returnType, System.Type[] parameterTypes) { throw new PlatformNotSupportedException (); }
public System.Reflection.Emit.PropertyBuilder DefineProperty(string name, System.Reflection.PropertyAttributes attributes, System.Reflection.CallingConventions callingConvention, System.Type returnType, System.Type[] returnTypeRequiredCustomModifiers, System.Type[] returnTypeOptionalCustomModifiers, System.Type[] parameterTypes, System.Type[][] parameterTypeRequiredCustomModifiers, System.Type[][] parameterTypeOptionalCustomModifiers) { throw new PlatformNotSupportedException (); }
public System.Reflection.Emit.PropertyBuilder DefineProperty(string name, System.Reflection.PropertyAttributes attributes, System.Type returnType, System.Type[] parameterTypes) { throw new PlatformNotSupportedException (); }
public System.Reflection.Emit.PropertyBuilder DefineProperty(string name, System.Reflection.PropertyAttributes attributes, System.Type returnType, System.Type[] returnTypeRequiredCustomModifiers, System.Type[] returnTypeOptionalCustomModifiers, System.Type[] parameterTypes, System.Type[][] parameterTypeRequiredCustomModifiers, System.Type[][] parameterTypeOptionalCustomModifiers) { throw new PlatformNotSupportedException (); }
public System.Reflection.Emit.ConstructorBuilder DefineTypeInitializer() { throw new PlatformNotSupportedException (); }
public System.Reflection.Emit.FieldBuilder DefineUninitializedData(string name, int size, System.Reflection.FieldAttributes attributes) { throw new PlatformNotSupportedException (); }
protected override System.Reflection.TypeAttributes GetAttributeFlagsImpl() { throw new PlatformNotSupportedException (); }
public static System.Reflection.ConstructorInfo GetConstructor(System.Type type, System.Reflection.ConstructorInfo constructor) { throw new PlatformNotSupportedException (); }
protected override System.Reflection.ConstructorInfo GetConstructorImpl(System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, System.Reflection.CallingConventions callConvention, System.Type[] types, System.Reflection.ParameterModifier[] modifiers) { throw new PlatformNotSupportedException (); }
public override System.Reflection.ConstructorInfo[] GetConstructors(System.Reflection.BindingFlags bindingAttr) { throw new PlatformNotSupportedException (); }
public override object[] GetCustomAttributes(bool inherit) { throw new PlatformNotSupportedException (); }
public override object[] GetCustomAttributes(System.Type attributeType, bool inherit) { throw new PlatformNotSupportedException (); }
public override System.Type GetElementType() { throw new PlatformNotSupportedException (); }
public override System.Reflection.EventInfo GetEvent(string name, System.Reflection.BindingFlags bindingAttr) { throw new PlatformNotSupportedException (); }
public override System.Reflection.EventInfo[] GetEvents() { throw new PlatformNotSupportedException (); }
public override System.Reflection.EventInfo[] GetEvents(System.Reflection.BindingFlags bindingAttr) { throw new PlatformNotSupportedException (); }
public override System.Reflection.FieldInfo GetField(string name, System.Reflection.BindingFlags bindingAttr) { throw new PlatformNotSupportedException (); }
public static System.Reflection.FieldInfo GetField(System.Type type, System.Reflection.FieldInfo field) { throw new PlatformNotSupportedException (); }
public override System.Reflection.FieldInfo[] GetFields(System.Reflection.BindingFlags bindingAttr) { throw new PlatformNotSupportedException (); }
public override System.Type[] GetGenericArguments() { throw new PlatformNotSupportedException (); }
public override System.Type GetGenericTypeDefinition() { throw new PlatformNotSupportedException (); }
public override System.Type GetInterface(string name, bool ignoreCase) { throw new PlatformNotSupportedException (); }
public override System.Reflection.InterfaceMapping GetInterfaceMap(System.Type interfaceType) { throw new PlatformNotSupportedException (); }
public override System.Type[] GetInterfaces() { throw new PlatformNotSupportedException (); }
public override System.Reflection.MemberInfo[] GetMember(string name, System.Reflection.MemberTypes type, System.Reflection.BindingFlags bindingAttr) { throw new PlatformNotSupportedException (); }
public override System.Reflection.MemberInfo[] GetMembers(System.Reflection.BindingFlags bindingAttr) { throw new PlatformNotSupportedException (); }
public static System.Reflection.MethodInfo GetMethod(System.Type type, System.Reflection.MethodInfo method) { throw new PlatformNotSupportedException (); }
protected override System.Reflection.MethodInfo GetMethodImpl(string name, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, System.Reflection.CallingConventions callConvention, System.Type[] types, System.Reflection.ParameterModifier[] modifiers) { throw new PlatformNotSupportedException (); }
public override System.Reflection.MethodInfo[] GetMethods(System.Reflection.BindingFlags bindingAttr) { throw new PlatformNotSupportedException (); }
public override System.Type GetNestedType(string name, System.Reflection.BindingFlags bindingAttr) { throw new PlatformNotSupportedException (); }
public override System.Type[] GetNestedTypes(System.Reflection.BindingFlags bindingAttr) { throw new PlatformNotSupportedException (); }
public override System.Reflection.PropertyInfo[] GetProperties(System.Reflection.BindingFlags bindingAttr) { throw new PlatformNotSupportedException (); }
protected override System.Reflection.PropertyInfo GetPropertyImpl(string name, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, System.Type returnType, System.Type[] types, System.Reflection.ParameterModifier[] modifiers) { throw new PlatformNotSupportedException (); }
protected override bool HasElementTypeImpl() { throw new PlatformNotSupportedException (); }
public override object InvokeMember(string name, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, object target, object[] args, System.Reflection.ParameterModifier[] modifiers, System.Globalization.CultureInfo culture, string[] namedParameters) { throw new PlatformNotSupportedException (); }
protected override bool IsArrayImpl() { throw new PlatformNotSupportedException (); }
public override bool IsAssignableFrom (System.Type c) { throw new PlatformNotSupportedException (); }
public override bool IsAssignableFrom (TypeInfo typeInfo) { throw new PlatformNotSupportedException (); }
protected override bool IsByRefImpl() { throw new PlatformNotSupportedException (); }
protected override bool IsCOMObjectImpl() { throw new PlatformNotSupportedException (); }
public bool IsCreated() { throw new PlatformNotSupportedException (); }
public override bool IsDefined(System.Type attributeType, bool inherit) { throw new PlatformNotSupportedException (); }
protected override bool IsPointerImpl() { throw new PlatformNotSupportedException (); }
protected override bool IsPrimitiveImpl() { throw new PlatformNotSupportedException (); }
public override bool IsSubclassOf(System.Type c) { throw new PlatformNotSupportedException (); }
protected override bool IsValueTypeImpl () { throw new PlatformNotSupportedException (); }
public override System.Type MakeArrayType() { throw new PlatformNotSupportedException (); }
public override System.Type MakeArrayType(int rank) { throw new PlatformNotSupportedException (); }
public override System.Type MakeByRefType() { throw new PlatformNotSupportedException (); }
public override System.Type MakeGenericType(params System.Type[] typeArguments) { throw new PlatformNotSupportedException (); }
public override System.Type MakePointerType() { throw new PlatformNotSupportedException (); }
public void SetCustomAttribute(System.Reflection.ConstructorInfo con, byte[] binaryAttribute) { throw new PlatformNotSupportedException (); }
public void SetCustomAttribute(System.Reflection.Emit.CustomAttributeBuilder customBuilder) { throw new PlatformNotSupportedException (); }
public void SetParent(System.Type parent) { throw new PlatformNotSupportedException (); }
public override string ToString() { throw new PlatformNotSupportedException (); }
}
}

View File

@ -0,0 +1,26 @@
#if !MONO_FEATURE_SRE
using System.Runtime.InteropServices;
namespace System.Reflection.Emit {
[Obsolete ("An alternate API is available: Emit the MarshalAs custom attribute instead.")]
[ComVisible (true)]
[Serializable]
[StructLayout (LayoutKind.Sequential)]
public sealed class UnmanagedMarshal {
private UnmanagedMarshal () {}
public UnmanagedType BaseType { get { throw new PlatformNotSupportedException (); } }
public int ElementCount { get { throw new PlatformNotSupportedException (); } }
public UnmanagedType GetUnmanagedType { get { throw new PlatformNotSupportedException (); } }
public System.Guid IIDGuid { get { throw new PlatformNotSupportedException (); } }
public static UnmanagedMarshal DefineByValArray (int elemCount) => throw new PlatformNotSupportedException ();
public static UnmanagedMarshal DefineByValTStr (int elemCount) => throw new PlatformNotSupportedException ();
public static UnmanagedMarshal DefineLPArray (UnmanagedType elemType) => throw new PlatformNotSupportedException ();
public static UnmanagedMarshal DefineUnmanagedMarshal (UnmanagedType unmanagedType) => throw new PlatformNotSupportedException ();
}
}
#endif

View File

@ -30,7 +30,7 @@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
#if !FULL_AOT_RUNTIME
#if !FULL_AOT_RUNTIME && !MONOTOUCH
using System.Reflection;
using System.Reflection.Emit;

View File

@ -30,7 +30,7 @@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
#if !FULL_AOT_RUNTIME
#if !FULL_AOT_RUNTIME && !MONOTOUCH
namespace System.Runtime.InteropServices {
[ComVisible (true)]

View File

@ -30,7 +30,7 @@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
#if !FULL_AOT_RUNTIME
#if !FULL_AOT_RUNTIME && !MONOTOUCH
using System.Reflection;
namespace System.Runtime.InteropServices {

View File

@ -30,7 +30,7 @@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
#if !FULL_AOT_RUNTIME
#if !FULL_AOT_RUNTIME && !MONOTOUCH
using System.Reflection;
namespace System.Runtime.InteropServices {

View File

@ -391,7 +391,7 @@ namespace System.Runtime.InteropServices
FreeHGlobal (s);
}
#if !FULL_AOT_RUNTIME
#if !FULL_AOT_RUNTIME && !MONOTOUCH
public static Guid GenerateGuidForType (Type type)
{
return type.GUID;
@ -438,7 +438,7 @@ namespace System.Runtime.InteropServices
return GetCCW (o, T);
}
#endif
#endif // !FULL_AOT_RUNTIME
#endif // !FULL_AOT_RUNTIME && !MONOTOUCH
public static IntPtr GetComInterfaceForObject (object o, Type T)
{
@ -463,7 +463,7 @@ namespace System.Runtime.InteropServices
return GetComInterfaceForObject ((object)o, typeof (T));
}
#if !FULL_AOT_RUNTIME && !NETCORE
#if !FULL_AOT_RUNTIME && !NETCORE && !MONOTOUCH
public static IntPtr GetComInterfaceForObjectInContext (object o, Type t)
{
@ -545,7 +545,7 @@ namespace System.Runtime.InteropServices
#endif
}
#if !FULL_AOT_RUNTIME
#if !FULL_AOT_RUNTIME && !MONOTOUCH
[MethodImplAttribute (MethodImplOptions.InternalCall)]
private extern static IntPtr GetIDispatchForObjectInternal (object o);
@ -595,7 +595,7 @@ namespace System.Runtime.InteropServices
public static IntPtr GetIUnknownForObject (object o)
{
#if FULL_AOT_RUNTIME
#if FULL_AOT_RUNTIME || MONOTOUCH
throw new PlatformNotSupportedException ();
#else
IntPtr pUnk = GetIUnknownForObjectInternal (o);
@ -700,7 +700,7 @@ namespace System.Runtime.InteropServices
#endif
}
#if !FULL_AOT_RUNTIME
#if !FULL_AOT_RUNTIME && !MONOTOUCH
#if !NETCORE
@ -1123,7 +1123,7 @@ namespace System.Runtime.InteropServices
#endif
}
#if !FULL_AOT_RUNTIME
#if !FULL_AOT_RUNTIME && !MONOTOUCH
[Obsolete]
public static void ReleaseThreadCache()

View File

@ -28,7 +28,7 @@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
#if !FULL_AOT_RUNTIME
#if !FULL_AOT_RUNTIME && !MONOTOUCH
using System;
using System.Reflection;
using System.Reflection.Emit;

View File

@ -30,7 +30,7 @@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
#if !FULL_AOT_RUNTIME
#if !FULL_AOT_RUNTIME && !MONOTOUCH
namespace System.Runtime.InteropServices
{
[ComVisible(true)]

View File

@ -28,7 +28,7 @@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
#if !FULL_AOT_RUNTIME
#if !FULL_AOT_RUNTIME && !MONOTOUCH
using System;
namespace System.Runtime.InteropServices

View File

@ -28,7 +28,7 @@
//
// (C) 2002 Ximian, Inc.
#if !FULL_AOT_RUNTIME
#if !FULL_AOT_RUNTIME && !MONOTOUCH
namespace System.Runtime.InteropServices
{
[Obsolete]

View File

@ -28,7 +28,7 @@
//
// (C) 2002 Ximian, Inc.
#if !FULL_AOT_RUNTIME
#if !FULL_AOT_RUNTIME && !MONOTOUCH
namespace System.Runtime.InteropServices
{
[Obsolete]

View File

@ -27,7 +27,7 @@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
#if !FULL_AOT_RUNTIME
#if !FULL_AOT_RUNTIME && !MONOTOUCH
using System.Reflection.Emit;
namespace System.Runtime.InteropServices {

View File

@ -27,7 +27,7 @@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
#if !FULL_AOT_RUNTIME
#if !FULL_AOT_RUNTIME && !MONOTOUCH
using System.Reflection.Emit;
namespace System.Runtime.InteropServices {

View File

@ -27,7 +27,7 @@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
#if !FULL_AOT_RUNTIME
#if !FULL_AOT_RUNTIME && !MONOTOUCH
using System.Reflection.Emit;
namespace System.Runtime.InteropServices {

View File

@ -27,7 +27,7 @@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
#if !FULL_AOT_RUNTIME
#if !FULL_AOT_RUNTIME && !MONOTOUCH
using System.Reflection.Emit;
namespace System.Runtime.InteropServices {

View File

@ -27,7 +27,7 @@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
#if !FULL_AOT_RUNTIME
#if !FULL_AOT_RUNTIME && !MONOTOUCH
using System.Reflection.Emit;
namespace System.Runtime.InteropServices {

View File

@ -27,7 +27,7 @@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
#if !FULL_AOT_RUNTIME
#if !FULL_AOT_RUNTIME && !MONOTOUCH
using System.Reflection.Emit;
namespace System.Runtime.InteropServices {

View File

@ -27,7 +27,7 @@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
#if !FULL_AOT_RUNTIME
#if !FULL_AOT_RUNTIME && !MONOTOUCH
using System.Reflection.Emit;
namespace System.Runtime.InteropServices {

View File

@ -27,7 +27,7 @@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
#if !FULL_AOT_RUNTIME
#if !FULL_AOT_RUNTIME && !MONOTOUCH
using System.Reflection.Emit;
namespace System.Runtime.InteropServices {

View File

@ -27,7 +27,7 @@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
#if !FULL_AOT_RUNTIME
#if !FULL_AOT_RUNTIME && !MONOTOUCH
using System.Reflection.Emit;
namespace System.Runtime.InteropServices {

View File

@ -27,7 +27,7 @@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
#if !FULL_AOT_RUNTIME
#if !FULL_AOT_RUNTIME && !MONOTOUCH
using System.Reflection.Emit;
namespace System.Runtime.InteropServices {

View File

@ -27,7 +27,7 @@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
#if !FULL_AOT_RUNTIME
#if !FULL_AOT_RUNTIME && !MONOTOUCH
using System.Reflection.Emit;
namespace System.Runtime.InteropServices {

View File

@ -27,7 +27,7 @@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
#if !FULL_AOT_RUNTIME
#if !FULL_AOT_RUNTIME && !MONOTOUCH
using System.Reflection.Emit;
namespace System.Runtime.InteropServices {

View File

@ -27,7 +27,7 @@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
#if !FULL_AOT_RUNTIME
#if !FULL_AOT_RUNTIME && !MONOTOUCH
using System.Reflection.Emit;
namespace System.Runtime.InteropServices {

View File

@ -0,0 +1,90 @@
using System;
using System.Collections.Generic;
using System.Reflection;
using System.Reflection.Emit;
using System.Security;
using System.Security.Policy;
#if !MONO_FEATURE_SRE
namespace System {
public partial class AppDomain {
public AssemblyBuilder DefineDynamicAssembly (AssemblyName name, AssemblyBuilderAccess access)
{
throw new PlatformNotSupportedException ();
}
public AssemblyBuilder DefineDynamicAssembly (AssemblyName name, AssemblyBuilderAccess access, IEnumerable<CustomAttributeBuilder> assemblyAttributes)
{
throw new PlatformNotSupportedException ();
}
[Obsolete ("Declarative security for assembly level is no longer enforced")]
public AssemblyBuilder DefineDynamicAssembly (AssemblyName name, AssemblyBuilderAccess access, Evidence evidence)
{
throw new PlatformNotSupportedException ();
}
public AssemblyBuilder DefineDynamicAssembly (AssemblyName name, AssemblyBuilderAccess access, string dir)
{
throw new PlatformNotSupportedException ();
}
public AssemblyBuilder DefineDynamicAssembly (AssemblyName name, AssemblyBuilderAccess access, IEnumerable<CustomAttributeBuilder> assemblyAttributes, SecurityContextSource securityContextSource)
{
throw new PlatformNotSupportedException ();
}
[Obsolete ("Declarative security for assembly level is no longer enforced")]
public AssemblyBuilder DefineDynamicAssembly (AssemblyName name, AssemblyBuilderAccess access, string dir, Evidence evidence)
{
throw new PlatformNotSupportedException ();
}
[Obsolete ("Declarative security for assembly level is no longer enforced")]
public AssemblyBuilder DefineDynamicAssembly (AssemblyName name, AssemblyBuilderAccess access, PermissionSet requiredPermissions, PermissionSet optionalPermissions, PermissionSet refusedPermissions)
{
throw new PlatformNotSupportedException ();
}
public AssemblyBuilder DefineDynamicAssembly (AssemblyName name, AssemblyBuilderAccess access, string dir, bool isSynchronized, IEnumerable<CustomAttributeBuilder> assemblyAttributes)
{
throw new PlatformNotSupportedException ();
}
[Obsolete ("Declarative security for assembly level is no longer enforced")]
public AssemblyBuilder DefineDynamicAssembly (AssemblyName name, AssemblyBuilderAccess access, Evidence evidence, PermissionSet requiredPermissions, PermissionSet optionalPermissions, PermissionSet refusedPermissions)
{
throw new PlatformNotSupportedException ();
}
[Obsolete ("Declarative security for assembly level is no longer enforced")]
public AssemblyBuilder DefineDynamicAssembly (AssemblyName name, AssemblyBuilderAccess access, string dir, PermissionSet requiredPermissions, PermissionSet optionalPermissions, PermissionSet refusedPermissions)
{
throw new PlatformNotSupportedException ();
}
[Obsolete ("Declarative security for assembly level is no longer enforced")]
public AssemblyBuilder DefineDynamicAssembly (AssemblyName name, AssemblyBuilderAccess access, string dir, Evidence evidence, PermissionSet requiredPermissions, PermissionSet optionalPermissions, PermissionSet refusedPermissions)
{
throw new PlatformNotSupportedException ();
}
[Obsolete ("Declarative security for assembly level is no longer enforced")]
public AssemblyBuilder DefineDynamicAssembly (AssemblyName name, AssemblyBuilderAccess access, string dir, Evidence evidence, PermissionSet requiredPermissions, PermissionSet optionalPermissions, PermissionSet refusedPermissions, bool isSynchronized)
{
throw new PlatformNotSupportedException ();
}
[Obsolete ("Declarative security for assembly level is no longer enforced")]
public AssemblyBuilder DefineDynamicAssembly (AssemblyName name, AssemblyBuilderAccess access, string dir, Evidence evidence, PermissionSet requiredPermissions, PermissionSet optionalPermissions, PermissionSet refusedPermissions, bool isSynchronized, IEnumerable<CustomAttributeBuilder> assemblyAttributes)
{
throw new PlatformNotSupportedException ();
}
}
}
#endif

View File

@ -1 +1 @@
4c2bff7c361892a4ef17dcf64ef443ffad6b1459
a609aea256112efd132cab75e3a40b560c42a264

View File

@ -1 +1 @@
203435678f5d99962a59b166c6f8477089409e69
908a4eff75b7a87d11f4d068d4da135abec8ff24

View File

@ -1 +1 @@
75c33dc1e1f39d6be5d4248fd53e053850bf623c
9adc22ff8d833e9611de166b80f5d6f9f63a1b92

View File

@ -1 +1 @@
6fd5e0f9295d73cc23d2ea00c89d6afe63e90249
265020b8b883f608623d08eb26f1933212c2001c

View File

@ -1 +1 @@
4d8afb8824c1057b2cf667f4ca4a0c15b195c478
1e5bb463cd1e4a5121ca98da10116c1079f75d92

View File

@ -1 +1 @@
b76682372cbd0666707115605695df85d1184dcc
b02f7d4eba14d2521b57858f0cb62fe118d6951d

View File

@ -1 +1 @@
08876e557061e83f44045fddb04a71731a88682e
aae338822855eaa679855c58498fda7bdf629c77

View File

@ -1 +1 @@
87311132b75300d9386c73dfd439125bff2d7e00
bb5d82a0dd64283b2979d6916a9d48ec92a8ea41

View File

@ -1 +1 @@
203435678f5d99962a59b166c6f8477089409e69
908a4eff75b7a87d11f4d068d4da135abec8ff24

View File

@ -1 +1 @@
75c33dc1e1f39d6be5d4248fd53e053850bf623c
9adc22ff8d833e9611de166b80f5d6f9f63a1b92

View File

@ -1 +1 @@
6fd5e0f9295d73cc23d2ea00c89d6afe63e90249
265020b8b883f608623d08eb26f1933212c2001c

View File

@ -1 +1 @@
4d8afb8824c1057b2cf667f4ca4a0c15b195c478
1e5bb463cd1e4a5121ca98da10116c1079f75d92

View File

@ -1 +1 @@
b76682372cbd0666707115605695df85d1184dcc
b02f7d4eba14d2521b57858f0cb62fe118d6951d

View File

@ -1 +1 @@
08876e557061e83f44045fddb04a71731a88682e
aae338822855eaa679855c58498fda7bdf629c77

View File

@ -1 +1 @@
87311132b75300d9386c73dfd439125bff2d7e00
bb5d82a0dd64283b2979d6916a9d48ec92a8ea41

View File

@ -1 +1 @@
203435678f5d99962a59b166c6f8477089409e69
908a4eff75b7a87d11f4d068d4da135abec8ff24

View File

@ -1 +1 @@
75c33dc1e1f39d6be5d4248fd53e053850bf623c
9adc22ff8d833e9611de166b80f5d6f9f63a1b92

View File

@ -1 +1 @@
6fd5e0f9295d73cc23d2ea00c89d6afe63e90249
265020b8b883f608623d08eb26f1933212c2001c

View File

@ -1 +1 @@
4d8afb8824c1057b2cf667f4ca4a0c15b195c478
1e5bb463cd1e4a5121ca98da10116c1079f75d92

View File

@ -1 +1 @@
b76682372cbd0666707115605695df85d1184dcc
b02f7d4eba14d2521b57858f0cb62fe118d6951d

View File

@ -1 +1 @@
08876e557061e83f44045fddb04a71731a88682e
aae338822855eaa679855c58498fda7bdf629c77

View File

@ -1 +1 @@
87311132b75300d9386c73dfd439125bff2d7e00
bb5d82a0dd64283b2979d6916a9d48ec92a8ea41

View File

@ -1 +1 @@
203435678f5d99962a59b166c6f8477089409e69
908a4eff75b7a87d11f4d068d4da135abec8ff24

View File

@ -1 +1 @@
75c33dc1e1f39d6be5d4248fd53e053850bf623c
9adc22ff8d833e9611de166b80f5d6f9f63a1b92

View File

@ -1 +1 @@
41b40e229958fb221257259d5603548f2de30e2d
a59319c3235eea533b79a8b2c4f6b2db63798c33

View File

@ -1 +1 @@
4d8afb8824c1057b2cf667f4ca4a0c15b195c478
1e5bb463cd1e4a5121ca98da10116c1079f75d92

View File

@ -1 +1 @@
b76682372cbd0666707115605695df85d1184dcc
b02f7d4eba14d2521b57858f0cb62fe118d6951d

View File

@ -1 +1 @@
08876e557061e83f44045fddb04a71731a88682e
aae338822855eaa679855c58498fda7bdf629c77

View File

@ -1 +1 @@
5b243fb63e09df568d8dfee692ee260f67e5435b
d606345696f5178e19fcc7923f6bd6c098eeede3

View File

@ -29,9 +29,7 @@ namespace System {
using System.Threading;
using System.Runtime.InteropServices;
using System.Runtime.Remoting;
#if !FULL_AOT_RUNTIME
using System.Reflection.Emit;
#endif
using CultureInfo = System.Globalization.CultureInfo;
using System.IO;
using System.Runtime.Versioning;
@ -88,7 +86,7 @@ namespace System {
[method:System.Security.SecurityCritical]
event UnhandledExceptionEventHandler UnhandledException;
#if !FULL_AOT_RUNTIME
AssemblyBuilder DefineDynamicAssembly(AssemblyName name,
AssemblyBuilderAccess access);
@ -141,7 +139,7 @@ namespace System {
PermissionSet optionalPermissions,
PermissionSet refusedPermissions,
bool isSynchronized);
#endif
ObjectHandle CreateInstance(String assemblyName,
String typeName);

Some files were not shown because too many files have changed in this diff Show More