mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-16 01:41:18 -10:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
df99fccf69 | ||
|
|
27554bf06b | ||
|
|
ddf393026a | ||
|
|
4181954955 | ||
|
|
0ca2187eb3 | ||
|
|
197461e034 | ||
|
|
356964caf2 | ||
|
|
271b64409d | ||
|
|
1e2119b6df | ||
|
|
da671d0b3c | ||
|
|
af47bd50b2 | ||
|
|
4766e2227a | ||
|
|
02d008c624 | ||
|
|
0c0df14755 | ||
|
|
9a3a2665f0 | ||
|
|
c01bc7bca9 | ||
|
|
9d909ca613 | ||
|
|
26b9087b44 | ||
|
|
a3d0f993c2 | ||
|
|
92e73f22ea | ||
|
|
4caae35744 | ||
|
|
d4e20f02e8 | ||
|
|
f506b6556b | ||
|
|
cfd117ef41 | ||
|
|
719fd63c43 | ||
|
|
7bcbc7c2bf | ||
|
|
3ac7efc336 | ||
|
|
482111976a | ||
|
|
7a8db67341 | ||
|
|
dce3386dbb | ||
|
|
ad01218417 | ||
|
|
b8a6096bb1 | ||
|
|
c35f4c3e5f | ||
|
|
08d062aca7 | ||
|
|
82601ba547 | ||
|
|
7d5deb616d | ||
|
|
a0ae702117 | ||
|
|
aee4ff6671 | ||
|
|
30e8a2329b | ||
|
|
1e96a5cfe6 | ||
|
|
a98c697a6d | ||
|
|
a5c39e9ac4 | ||
|
|
11e10a07ad | ||
|
|
10db3b9dd0 | ||
|
|
186a3b768e | ||
|
|
cd42fa383f | ||
|
|
3134b554ed | ||
|
|
c716c2200b | ||
|
|
4616c1c2d6 | ||
|
|
6f7e90d908 | ||
|
|
bec31562b2 | ||
|
|
18b454c267 | ||
|
|
5ce3f8f62b | ||
|
|
6c135b00e3 | ||
|
|
1a105af0bc | ||
|
|
fd4b429551 | ||
|
|
705aa0209b | ||
|
|
9091e89cbf | ||
|
|
64630570f7 | ||
|
|
dd06ea25fa | ||
|
|
c1b2d24d3b | ||
|
|
b7cc391243 | ||
|
|
28a266a434 | ||
|
|
f103f5ce57 | ||
|
|
525877cfe1 | ||
|
|
3d2df4c76e | ||
|
|
fc25025f64 | ||
|
|
1c08f4db80 | ||
|
|
030986fed7 | ||
|
|
0f956be2e8 | ||
|
|
68eea797de | ||
|
|
73430f2f78 | ||
|
|
c3c1df05ba | ||
|
|
a184b94276 | ||
|
|
a5c373ff40 | ||
|
|
453c277692 | ||
|
|
432e2032c9 | ||
|
|
31efbed2fe | ||
|
|
a0d6820d94 | ||
|
|
d7431c205e | ||
|
|
342edb8e52 | ||
|
|
aecfd90d2a | ||
|
|
1e53aaa2b3 | ||
|
|
d9d7943901 | ||
|
|
5fd5f4ab42 | ||
|
|
5ab8c20e76 | ||
|
|
56ce963113 | ||
|
|
8d6a92f914 | ||
|
|
b3ff0883cc | ||
|
|
982adf1ac4 | ||
|
|
daf75c61ca | ||
|
|
ba238de63b | ||
|
|
21e76d610e | ||
|
|
84aa2ebf15 | ||
|
|
4d67a0f9f2 | ||
|
|
0796cd6829 | ||
|
|
2046cf5d26 | ||
|
|
0f705a4acd | ||
|
|
f683efc4a6 | ||
|
|
7a7bebbfb2 |
No files matched your search
+2
-3
@@ -21,13 +21,12 @@ endif
|
||||
|
||||
SUBDIRS = $(build_with_msvc) mk po $(libgc_dir) llvm mono $(ikvm_native_dir) support data runtime scripts man samples $(tools_dir) $(build_without_msvc) $(docs_dir) acceptance-tests
|
||||
# Keep in sync with SUBDIRS
|
||||
DIST_SUBDIRS = $(build_with_msvc) m4 mk po $(libgc_dir) llvm mono ikvm-native support data runtime scripts man samples tools $(build_without_msvc) docs acceptance-tests
|
||||
DIST_SUBDIRS = $(build_with_msvc) m4 mk po $(libgc_dir) llvm mono ikvm-native support data runtime scripts man samples tools $(build_without_msvc) docs acceptance-tests netcore
|
||||
|
||||
all: update_submodules
|
||||
|
||||
SUBMODULE_ERROR='Could not recursively update all git submodules. You may experience compilation problems if some submodules are out of date'
|
||||
update_submodules:
|
||||
@$(srcdir)/scripts/update_submodules.sh
|
||||
@cd $(srcdir) && scripts/update_submodules.sh
|
||||
|
||||
.PHONY: update_submodules
|
||||
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
check-roslyn:
|
||||
@echo "Runnning roslyn tests using mono from PATH:"
|
||||
mono --version
|
||||
@$(MAKE) validate-roslyn RESET_VERSIONS=1
|
||||
cd $(ROSLYN_PATH); \
|
||||
./build.sh --restore --build --test --mono || exit; \
|
||||
|
||||
+4
-3
@@ -4,7 +4,7 @@
|
||||
# This line is parsed by tools besides autoconf, such as msvc/mono.winconfig.targets.
|
||||
# It should remain in the format they expect.
|
||||
#
|
||||
AC_INIT(mono, [6.1.0],
|
||||
AC_INIT(mono, [6.2.0],
|
||||
[https://github.com/mono/mono/issues/new])
|
||||
|
||||
AC_CONFIG_SRCDIR([README.md])
|
||||
@@ -1247,7 +1247,8 @@ with_bitcode_default=no
|
||||
enable_cooperative_suspend_default=no
|
||||
enable_hybrid_suspend_default=no
|
||||
|
||||
INVARIANT_AOT_OPTIONS=nimt-trampolines=2000,ntrampolines=10000,nrgctx-fetch-trampolines=256,ngsharedvt-trampolines=4000,nftnptr-arg-trampolines=4000
|
||||
# For the sake of clearer error messages, these numbers should all be different from each other.
|
||||
INVARIANT_AOT_OPTIONS=nimt-trampolines=2000,ntrampolines=10000,nrgctx-fetch-trampolines=256,ngsharedvt-trampolines=4400,nftnptr-arg-trampolines=4000
|
||||
|
||||
AOT_BUILD_ATTRS=$INVARIANT_AOT_OPTIONS
|
||||
|
||||
@@ -1415,7 +1416,7 @@ elif test x$with_runtime_preset = xwinaot_llvm; then
|
||||
mono_feature_disable_reflection_emit='yes'
|
||||
mono_feature_disable_appdomains='yes'
|
||||
|
||||
INVARIANT_AOT_OPTIONS="llcopts=-mattr=sse4.1,$INVARIANT_AOT_OPTIONS"
|
||||
INVARIANT_AOT_OPTIONS="llvmllc=-mattr=sse4.1,$INVARIANT_AOT_OPTIONS"
|
||||
AOT_BUILD_FLAGS="--runtime=mobile -O=gsharedvt --llvm --aot=full,$INVARIANT_AOT_OPTIONS"
|
||||
AOT_RUN_FLAGS="--runtime=mobile --full-aot"
|
||||
AOT_MODE="full"
|
||||
|
||||
Vendored
+1
-1
Submodule external/api-snapshot updated: 08d3d9c3ce...9b0eb38c8a.
Vendored
+1
-1
Submodule external/bockbuild updated: ebd383635f...ca36fadab8.
Vendored
+1
-1
Submodule external/cecil updated: e5d5fa4a73...11c6cd4cc7.
Vendored
+1
-1
Submodule external/helix-binaries updated: 7e893ea868...64b3a67631.
Vendored
+1
-1
Submodule external/linker updated: 13d864e282...529969e9f0.
+4
-6
@@ -246,12 +246,6 @@ program that comes with Mono, and calling it like this:
|
||||
|
||||
.fi
|
||||
.TP
|
||||
.I llcopts=[options]
|
||||
Use this option to add more flags to the built-in set of flags passed to the
|
||||
LLVM system compiler. If not provided, it will fallback to
|
||||
.I -mcpu=generic
|
||||
on x86 systems.
|
||||
.TP
|
||||
.I llvm-outfile=[filename]
|
||||
Gives the path for the temporary LLVM bitcode file created during AOT.
|
||||
.I dedup
|
||||
@@ -646,6 +640,10 @@ running a 1.1 program on a 2.0 version:
|
||||
Configures the virtual machine to be better suited for server
|
||||
operations (currently, allows a heavier threadpool initialization).
|
||||
.TP
|
||||
\fB--use-map-jit\fR
|
||||
Instructs Mono to generate code using MAP_JIT on MacOS. Necessary for
|
||||
bundled applications.
|
||||
.TP
|
||||
\fB--verify-all\fR
|
||||
Verifies mscorlib and assemblies in the global
|
||||
assembly cache for valid IL, and all user code for IL
|
||||
|
||||
@@ -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
|
||||
|
||||
EXTERNAL_MCS = mcs
|
||||
EXTERNAL_MBAS = mbas
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -34,3 +34,5 @@ NO_INSTALL = yes
|
||||
MOBILE_DYNAMIC = yes
|
||||
MOBILE_PROFILE = yes
|
||||
NO_CONSOLE = yes
|
||||
|
||||
PROFILE_TEST_HARNESS_EXCLUDES = MobileNotWorking PKITS InetAccess AndroidNotWorking
|
||||
@@ -3,4 +3,6 @@ include $(topdir)/build/profiles/monotouch_runtime.make
|
||||
PROFILE_MCS_FLAGS += \
|
||||
-d:FULL_AOT_RUNTIME
|
||||
|
||||
NO_SRE=1
|
||||
NO_SRE = yes
|
||||
|
||||
PROFILE_TEST_HARNESS_EXCLUDES += SRE NotWorkingLinqInterpreter
|
||||
@@ -39,4 +39,6 @@ NO_CONSOLE = yes
|
||||
PROFILE_DISABLE_BTLS=1
|
||||
MONO_FEATURE_APPLETLS=1
|
||||
ONLY_APPLETLS=1
|
||||
ENABLE_GSS=1
|
||||
ENABLE_GSS=1
|
||||
|
||||
PROFILE_TEST_HARNESS_EXCLUDES = MobileNotWorking PKITS InetAccess
|
||||
@@ -40,7 +40,6 @@ MOBILE_PROFILE = yes
|
||||
NO_VTS_TEST = yes
|
||||
NO_CONSOLE = yes
|
||||
PROFILE_DISABLE_BTLS = yes
|
||||
NO_SRE=1
|
||||
NO_SRE = yes
|
||||
|
||||
# Note need for trailing comma. If you add, keep it
|
||||
PROFILE_TEST_HARNESS_EXCLUDES = MobileNotWorking,PKITS,
|
||||
PROFILE_TEST_HARNESS_EXCLUDES = MobileNotWorking PKITS SRE NotWorkingLinqInterpreter
|
||||
@@ -30,5 +30,4 @@ NO_INSTALL = yes
|
||||
NO_CONSOLE = yes
|
||||
MOBILE_PROFILE = yes
|
||||
|
||||
# Note need for trailing comma. If you add, keep it
|
||||
PROFILE_TEST_HARNESS_EXCLUDES := MobileNotWorking,PKITS,
|
||||
PROFILE_TEST_HARNESS_EXCLUDES := MobileNotWorking PKITS
|
||||
@@ -14,3 +14,5 @@ NO_SRE = yes
|
||||
|
||||
ALWAYS_AOT_BCL = yes
|
||||
ALWAYS_AOT_TESTS = yes
|
||||
|
||||
PROFILE_TEST_HARNESS_EXCLUDES += SRE
|
||||
@@ -38,7 +38,6 @@ ALWAYS_AOT_BCL = yes
|
||||
ALWAYS_AOT_TESTS = yes
|
||||
MOBILE_PROFILE = yes
|
||||
NO_VTS_TEST = yes
|
||||
NO_SRE=1
|
||||
NO_SRE = yes
|
||||
|
||||
# Note need for trailing comma. If you add, keep it
|
||||
PROFILE_TEST_HARNESS_EXCLUDES = MobileNotWorking,PKITS,
|
||||
PROFILE_TEST_HARNESS_EXCLUDES = MobileNotWorking PKITS SRE NotWorkingLinqInterpreter
|
||||
@@ -38,3 +38,5 @@ ENABLE_GSS=1
|
||||
PROFILE_DISABLE_BTLS=1
|
||||
MONO_FEATURE_APPLETLS=1
|
||||
ONLY_APPLETLS=1
|
||||
|
||||
PROFILE_TEST_HARNESS_EXCLUDES = MobileNotWorking PKITS
|
||||
@@ -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
|
||||
|
||||
+31
-20
@@ -147,17 +147,15 @@ ifdef HAVE_CS_TESTS
|
||||
test_assemblies += $(test_lib_output)
|
||||
|
||||
check: run-test
|
||||
test-local: $(test_assemblies)
|
||||
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 =
|
||||
|
||||
@@ -241,15 +239,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)
|
||||
@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
|
||||
|
||||
@@ -257,7 +259,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
|
||||
|
||||
|
||||
@@ -314,15 +316,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)
|
||||
|
||||
@@ -339,17 +343,24 @@ XTEST_COVERAGE_FLAGS = -O=-aot --profile=coverage:output=$(topdir)/class/lib/$(P
|
||||
endif
|
||||
|
||||
check: run-xunit-test-local
|
||||
xunit-test-local: $(xtest_lib_output)
|
||||
xunit-test-local: $(xtest_lib_output) $(test_lib_dir)/xunit-excludes.txt $(test_lib_dir)/Xunit.NetCore.Extensions.dll $(test_lib_dir)/xunit.execution.dotnet.dll
|
||||
run-xunit-test-local: run-xunit-test-lib
|
||||
|
||||
# cp -rf is a HACK for xunit runner to require xunit.execution.dOTNET.dll file in local folder on .net only
|
||||
$(test_lib_dir)/xunit-excludes.txt: $(topdir)/build/tests.make | $(test_lib_dir)
|
||||
@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 $@
|
||||
|
||||
$(test_lib_dir)/xunit.execution.dotnet.dll: $(topdir)/build/tests.make $(topdir)/../external/xunit-binaries/xunit.execution.dotnet.dll | $(test_lib_dir)
|
||||
@cp -f $(topdir)/../external/xunit-binaries/xunit.execution.dotnet.dll $@
|
||||
|
||||
run-xunit-test-lib: xunit-test-local
|
||||
@cp -rf $(XTEST_HARNESS_PATH)/xunit.execution.dotnet.dll $(test_lib_dir)/xunit.execution.dotnet.dll
|
||||
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
|
||||
@rm -f $(test_lib_dir)/xunit.execution.dotnet.dll
|
||||
|
||||
# Some xunit tests want to be executed in a separate process (see RemoteExecutorTestBase)
|
||||
$(XTEST_REMOTE_EXECUTOR): $(topdir)/../external/corefx/src/Common/tests/System/Diagnostics/RemoteExecutorConsoleApp/RemoteExecutorConsoleApp.cs | $(test_lib_dir)
|
||||
|
||||
@@ -33,8 +33,10 @@
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Buffers.MemoryManager<>))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Buffers.MemoryHandle))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Buffers.MemoryPool<>))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Buffers.OperationStatus))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Buffers.ReadOnlySequenceSegment<>))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Buffers.ReadOnlySequence<>))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Buffers.StandardFormat))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Buffers.Binary.BinaryPrimitives))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Buffers.Text.Base64))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Buffers.Text.Utf8Formatter))]
|
||||
|
||||
@@ -49,7 +49,7 @@ namespace Cairo {
|
||||
|
||||
public class Context : IDisposable
|
||||
{
|
||||
IntPtr handle = IntPtr.Zero;
|
||||
IntPtr handle;
|
||||
|
||||
static int native_glyph_size, c_compiler_long_size;
|
||||
|
||||
@@ -105,6 +105,12 @@ namespace Cairo {
|
||||
Dispose (false);
|
||||
}
|
||||
|
||||
private void ThrowIfDisposed()
|
||||
{
|
||||
if (handle == IntPtr.Zero)
|
||||
throw new ObjectDisposedException("Cairo.Context");
|
||||
}
|
||||
|
||||
public void Dispose ()
|
||||
{
|
||||
Dispose (true);
|
||||
@@ -307,9 +313,14 @@ namespace Cairo {
|
||||
|
||||
public void SetTarget (Surface target)
|
||||
{
|
||||
IntPtr newHandle = NativeMethods.cairo_create (target.Handle);
|
||||
if (newHandle == IntPtr.Zero)
|
||||
throw new InvalidOperationException ("Surface had an invalid handle.");
|
||||
|
||||
if (handle != IntPtr.Zero)
|
||||
NativeMethods.cairo_destroy (handle);
|
||||
handle = NativeMethods.cairo_create (target.Handle);
|
||||
|
||||
handle = newHandle;
|
||||
}
|
||||
|
||||
[Obsolete("Use GetScaledFont/SetScaledFont")]
|
||||
@@ -325,11 +336,13 @@ namespace Cairo {
|
||||
|
||||
public ScaledFont GetScaledFont ()
|
||||
{
|
||||
ThrowIfDisposed();
|
||||
return new ScaledFont (NativeMethods.cairo_get_scaled_font (handle), false);
|
||||
}
|
||||
|
||||
public void SetScaledFont (ScaledFont font)
|
||||
{
|
||||
ThrowIfDisposed();
|
||||
NativeMethods.cairo_set_scaled_font (handle, font.Handle);
|
||||
}
|
||||
|
||||
@@ -339,32 +352,38 @@ namespace Cairo {
|
||||
|
||||
public void SetSourceColor (Color color)
|
||||
{
|
||||
ThrowIfDisposed();
|
||||
NativeMethods.cairo_set_source_rgba (handle, color.R, color.G, color.B, color.A);
|
||||
}
|
||||
|
||||
public void SetSourceRGB (double r, double g, double b)
|
||||
{
|
||||
ThrowIfDisposed();
|
||||
NativeMethods.cairo_set_source_rgb (handle, r, g, b);
|
||||
}
|
||||
|
||||
public void SetSourceRGBA (double r, double g, double b, double a)
|
||||
{
|
||||
ThrowIfDisposed();
|
||||
NativeMethods.cairo_set_source_rgba (handle, r, g, b, a);
|
||||
}
|
||||
|
||||
//[Obsolete ("Use SetSource method (with double parameters)")]
|
||||
public void SetSourceSurface (Surface source, int x, int y)
|
||||
{
|
||||
ThrowIfDisposed();
|
||||
NativeMethods.cairo_set_source_surface (handle, source.Handle, x, y);
|
||||
}
|
||||
|
||||
public void SetSource (Surface source, double x, double y)
|
||||
{
|
||||
ThrowIfDisposed();
|
||||
NativeMethods.cairo_set_source_surface (handle, source.Handle, x, y);
|
||||
}
|
||||
|
||||
public void SetSource (Surface source)
|
||||
{
|
||||
ThrowIfDisposed();
|
||||
NativeMethods.cairo_set_source_surface (handle, source.Handle, 0, 0);
|
||||
}
|
||||
|
||||
@@ -372,116 +391,139 @@ namespace Cairo {
|
||||
|
||||
public void NewPath ()
|
||||
{
|
||||
ThrowIfDisposed();
|
||||
NativeMethods.cairo_new_path (handle);
|
||||
}
|
||||
|
||||
public void NewSubPath ()
|
||||
{
|
||||
ThrowIfDisposed();
|
||||
NativeMethods.cairo_new_sub_path (handle);
|
||||
}
|
||||
|
||||
public void MoveTo (PointD p)
|
||||
{
|
||||
ThrowIfDisposed();
|
||||
MoveTo (p.X, p.Y);
|
||||
}
|
||||
|
||||
public void MoveTo (double x, double y)
|
||||
{
|
||||
ThrowIfDisposed();
|
||||
NativeMethods.cairo_move_to (handle, x, y);
|
||||
}
|
||||
|
||||
public void LineTo (PointD p)
|
||||
{
|
||||
ThrowIfDisposed();
|
||||
LineTo (p.X, p.Y);
|
||||
}
|
||||
|
||||
public void LineTo (double x, double y)
|
||||
{
|
||||
ThrowIfDisposed();
|
||||
NativeMethods.cairo_line_to (handle, x, y);
|
||||
}
|
||||
|
||||
public void CurveTo (PointD p1, PointD p2, PointD p3)
|
||||
{
|
||||
ThrowIfDisposed();
|
||||
CurveTo (p1.X, p1.Y, p2.X, p2.Y, p3.X, p3.Y);
|
||||
}
|
||||
|
||||
public void CurveTo (double x1, double y1, double x2, double y2, double x3, double y3)
|
||||
{
|
||||
ThrowIfDisposed();
|
||||
NativeMethods.cairo_curve_to (handle, x1, y1, x2, y2, x3, y3);
|
||||
}
|
||||
|
||||
public void RelMoveTo (Distance d)
|
||||
{
|
||||
ThrowIfDisposed();
|
||||
RelMoveTo (d.Dx, d.Dy);
|
||||
}
|
||||
|
||||
public void RelMoveTo (double dx, double dy)
|
||||
{
|
||||
ThrowIfDisposed();
|
||||
NativeMethods.cairo_rel_move_to (handle, dx, dy);
|
||||
}
|
||||
|
||||
public void RelLineTo (Distance d)
|
||||
{
|
||||
ThrowIfDisposed();
|
||||
RelLineTo (d.Dx, d.Dy);
|
||||
}
|
||||
|
||||
public void RelLineTo (double dx, double dy)
|
||||
{
|
||||
ThrowIfDisposed();
|
||||
NativeMethods.cairo_rel_line_to (handle, dx, dy);
|
||||
}
|
||||
|
||||
public void RelCurveTo (Distance d1, Distance d2, Distance d3)
|
||||
{
|
||||
ThrowIfDisposed();
|
||||
RelCurveTo (d1.Dx, d1.Dy, d2.Dx, d2.Dy, d3.Dx, d3.Dy);
|
||||
}
|
||||
|
||||
public void RelCurveTo (double dx1, double dy1, double dx2, double dy2, double dx3, double dy3)
|
||||
{
|
||||
ThrowIfDisposed();
|
||||
NativeMethods.cairo_rel_curve_to (handle, dx1, dy1, dx2, dy2, dx3, dy3);
|
||||
}
|
||||
|
||||
public void Arc (double xc, double yc, double radius, double angle1, double angle2)
|
||||
{
|
||||
ThrowIfDisposed();
|
||||
NativeMethods.cairo_arc (handle, xc, yc, radius, angle1, angle2);
|
||||
}
|
||||
|
||||
public void ArcNegative (double xc, double yc, double radius, double angle1, double angle2)
|
||||
{
|
||||
ThrowIfDisposed();
|
||||
NativeMethods.cairo_arc_negative (handle, xc, yc, radius, angle1, angle2);
|
||||
}
|
||||
|
||||
public void Rectangle (Rectangle rectangle)
|
||||
{
|
||||
ThrowIfDisposed();
|
||||
Rectangle (rectangle.X, rectangle.Y, rectangle.Width, rectangle.Height);
|
||||
}
|
||||
|
||||
public void Rectangle (PointD p, double width, double height)
|
||||
{
|
||||
ThrowIfDisposed();
|
||||
Rectangle (p.X, p.Y, width, height);
|
||||
}
|
||||
|
||||
public void Rectangle (double x, double y, double width, double height)
|
||||
{
|
||||
ThrowIfDisposed();
|
||||
NativeMethods.cairo_rectangle (handle, x, y, width, height);
|
||||
}
|
||||
|
||||
public void ClosePath ()
|
||||
{
|
||||
ThrowIfDisposed();
|
||||
NativeMethods.cairo_close_path (handle);
|
||||
}
|
||||
|
||||
public Path CopyPath ()
|
||||
{
|
||||
ThrowIfDisposed();
|
||||
return new Path (NativeMethods.cairo_copy_path (handle));
|
||||
}
|
||||
|
||||
public Path CopyPathFlat ()
|
||||
{
|
||||
ThrowIfDisposed();
|
||||
return new Path (NativeMethods.cairo_copy_path_flat (handle));
|
||||
}
|
||||
|
||||
public void AppendPath (Path path)
|
||||
{
|
||||
ThrowIfDisposed();
|
||||
NativeMethods.cairo_append_path (handle, path.Handle);
|
||||
}
|
||||
|
||||
@@ -490,36 +532,43 @@ namespace Cairo {
|
||||
#region Painting Methods
|
||||
public void Paint ()
|
||||
{
|
||||
ThrowIfDisposed();
|
||||
NativeMethods.cairo_paint (handle);
|
||||
}
|
||||
|
||||
public void PaintWithAlpha (double alpha)
|
||||
{
|
||||
ThrowIfDisposed();
|
||||
NativeMethods.cairo_paint_with_alpha (handle, alpha);
|
||||
}
|
||||
|
||||
public void Mask (Pattern pattern)
|
||||
{
|
||||
ThrowIfDisposed();
|
||||
NativeMethods.cairo_mask (handle, pattern.Handle);
|
||||
}
|
||||
|
||||
public void MaskSurface (Surface surface, double surface_x, double surface_y)
|
||||
{
|
||||
ThrowIfDisposed();
|
||||
NativeMethods.cairo_mask_surface (handle, surface.Handle, surface_x, surface_y);
|
||||
}
|
||||
|
||||
public void Stroke ()
|
||||
{
|
||||
ThrowIfDisposed();
|
||||
NativeMethods.cairo_stroke (handle);
|
||||
}
|
||||
|
||||
public void StrokePreserve ()
|
||||
{
|
||||
ThrowIfDisposed();
|
||||
NativeMethods.cairo_stroke_preserve (handle);
|
||||
}
|
||||
|
||||
public Rectangle StrokeExtents ()
|
||||
{
|
||||
ThrowIfDisposed();
|
||||
double x1, y1, x2, y2;
|
||||
NativeMethods.cairo_stroke_extents (handle, out x1, out y1, out x2, out y2);
|
||||
return new Rectangle (x1, y1, x2 - x1, y2 - y1);
|
||||
@@ -527,6 +576,7 @@ namespace Cairo {
|
||||
|
||||
public void Fill ()
|
||||
{
|
||||
ThrowIfDisposed();
|
||||
NativeMethods.cairo_fill (handle);
|
||||
}
|
||||
|
||||
@@ -539,6 +589,7 @@ namespace Cairo {
|
||||
|
||||
public void FillPreserve ()
|
||||
{
|
||||
ThrowIfDisposed();
|
||||
NativeMethods.cairo_fill_preserve (handle);
|
||||
}
|
||||
|
||||
|
||||
@@ -186,7 +186,6 @@
|
||||
<Compile Include="..\..\..\external\cecil\Mono\Disposable.cs" />
|
||||
<Compile Include="..\..\..\external\cecil\Mono\Empty.cs" />
|
||||
<Compile Include="..\..\..\external\cecil\Mono\MergeSort.cs" />
|
||||
<Compile Include="..\..\..\external\cecil\Mono\Type.cs" />
|
||||
<Compile Include="..\..\..\external\cecil\ProjectInfo.cs" />
|
||||
<Compile Include="Consts.cs" />
|
||||
</ItemGroup>
|
||||
|
||||
@@ -37,10 +37,8 @@ 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,
|
||||
else
|
||||
LIB_MCS_FLAGS += -d:FEATURE_COMPILE,FEATURE_COMPILE_TO_METHODBUILDER
|
||||
PROFILE_TEST_HARNESS_EXCLUDES := $(PROFILE_TEST_HARNESS_EXCLUDES)SRE,
|
||||
endif
|
||||
endif
|
||||
|
||||
|
||||
@@ -1196,6 +1196,8 @@
|
||||
<Compile Include="System.IO.Pipes\NamedPipeServerStream.NotSupported.cs" />
|
||||
<Compile Include="System.IO.Pipes\PipeStream.NotSupported.cs" />
|
||||
<Compile Include="System.IO.Pipes\SafePipeHandle.NotSupported.cs" />
|
||||
<Compile Include="System.Linq.Expressions\LambdaExpression.NotSupported.cs" />
|
||||
<Compile Include="System.Runtime.CompilerServices\RuntimeOps.NotSupported.cs" />
|
||||
</ItemGroup>
|
||||
</When>
|
||||
<When Condition="'$(Platform)' == 'monotouch_tv'">
|
||||
@@ -1253,6 +1255,8 @@
|
||||
<Compile Include="System.IO.Pipes\NamedPipeServerStream.NotSupported.cs" />
|
||||
<Compile Include="System.IO.Pipes\PipeStream.NotSupported.cs" />
|
||||
<Compile Include="System.IO.Pipes\SafePipeHandle.NotSupported.cs" />
|
||||
<Compile Include="System.Linq.Expressions\LambdaExpression.NotSupported.cs" />
|
||||
<Compile Include="System.Runtime.CompilerServices\RuntimeOps.NotSupported.cs" />
|
||||
</ItemGroup>
|
||||
</When>
|
||||
<When Condition="'$(Platform)' == 'monotouch'">
|
||||
@@ -1310,6 +1314,8 @@
|
||||
<Compile Include="System.IO.Pipes\NamedPipeServerStream.NotSupported.cs" />
|
||||
<Compile Include="System.IO.Pipes\PipeStream.NotSupported.cs" />
|
||||
<Compile Include="System.IO.Pipes\SafePipeHandle.NotSupported.cs" />
|
||||
<Compile Include="System.Linq.Expressions\LambdaExpression.NotSupported.cs" />
|
||||
<Compile Include="System.Runtime.CompilerServices\RuntimeOps.NotSupported.cs" />
|
||||
</ItemGroup>
|
||||
</When>
|
||||
<When Condition="'$(Platform)' == 'monodroid'">
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Reflection.Emit;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace System.Linq.Expressions {
|
||||
|
||||
public partial class LambdaExpression {
|
||||
|
||||
public void CompileToMethod (MethodBuilder method) => throw new PlatformNotSupportedException ();
|
||||
|
||||
public void CompileToMethod (MethodBuilder method, DebugInfoGenerator debugInfoGenerator) => throw new PlatformNotSupportedException ();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Reflection.Emit;
|
||||
using System.Linq.Expressions;
|
||||
|
||||
namespace System.Runtime.CompilerServices {
|
||||
|
||||
public partial class RuntimeOps {
|
||||
|
||||
[Obsolete ("do not use this method")]
|
||||
public static IRuntimeVariables MergeRuntimeVariables (IRuntimeVariables first, IRuntimeVariables second, int[] indexes) => throw new PlatformNotSupportedException ();
|
||||
|
||||
[Obsolete ("do not use this method")]
|
||||
public static Expression Quote (Expression expression, object hoistedLocals, object[] locals) => throw new PlatformNotSupportedException ();
|
||||
}
|
||||
}
|
||||
@@ -1,3 +1,4 @@
|
||||
#include common_System.Core.dll.sources
|
||||
#include interpreter_System.Core.dll.sources
|
||||
#include pipes_pns.sources
|
||||
#include sre_pns.sources
|
||||
@@ -0,0 +1,2 @@
|
||||
System.Linq.Expressions/LambdaExpression.NotSupported.cs
|
||||
System.Runtime.CompilerServices/RuntimeOps.NotSupported.cs
|
||||
@@ -119,7 +119,6 @@
|
||||
../../../external/corefx/src/System.Data.SqlClient/tests/Tools/TDS/TDS.EndPoint/SSPI/SecResult.cs
|
||||
../../../external/corefx/src/System.Data.SqlClient/tests/Tools/TDS/TDS.EndPoint/SSPI/SecurityHandle.cs
|
||||
../../../external/corefx/src/System.Data.SqlClient/tests/Tools/TDS/TDS.EndPoint/SSPI/SecurityInteger.cs
|
||||
../../../external/corefx/src/System.Data.SqlClient/tests/Tools/TDS/TDS.EndPoint/SSPI/SecurityWrapper.cs
|
||||
../../../external/corefx/src/System.Data.SqlClient/tests/Tools/TDS/TDS.EndPoint/SSPI/SSPIContext.Unix.cs
|
||||
../../../external/corefx/src/System.Data.SqlClient/tests/Tools/TDS/TDS.EndPoint/SSPI/SSPIResponse.cs
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ namespace MonoTests.System.Net.Http
|
||||
|
||||
internal static bool IsSocketsHandler (HttpClientHandler handler) => false;
|
||||
|
||||
internal static HttpClient CreateHttpClient ()
|
||||
internal static HttpClient CreateHttpClientWithHttpClientHandler ()
|
||||
{
|
||||
return new HttpClient (CreateHttpClientHandler ());
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ namespace MonoTests.System.Net.Http
|
||||
|
||||
internal static bool IsSocketsHandler (HttpClientHandler handler) => UsingSocketsHandler;
|
||||
|
||||
internal static HttpClient CreateHttpClient ()
|
||||
internal static HttpClient CreateHttpClientWithHttpClientHandler ()
|
||||
{
|
||||
return new HttpClient (CreateHttpClientHandler ());
|
||||
}
|
||||
|
||||
@@ -188,9 +188,12 @@ namespace MonoTests.System.Net.Http
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void Ctor_Default ()
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void Ctor_HttpClientHandler ()
|
||||
{
|
||||
var client = HttpClientTestHelpers.CreateHttpClient ();
|
||||
var client = HttpClientTestHelpers.CreateHttpClientWithHttpClientHandler ();
|
||||
Assert.IsNull (client.BaseAddress, "#1");
|
||||
Assert.IsNotNull (client.DefaultRequestHeaders, "#2"); // TODO: full check
|
||||
Assert.AreEqual (int.MaxValue, client.MaxResponseContentBufferSize, "#3");
|
||||
@@ -292,7 +295,7 @@ namespace MonoTests.System.Net.Http
|
||||
[Test]
|
||||
public void Properties ()
|
||||
{
|
||||
var client = HttpClientTestHelpers.CreateHttpClient ();
|
||||
var client = new HttpClient ();
|
||||
client.BaseAddress = null;
|
||||
client.MaxResponseContentBufferSize = int.MaxValue;
|
||||
client.Timeout = Timeout.InfiniteTimeSpan;
|
||||
@@ -305,7 +308,7 @@ namespace MonoTests.System.Net.Http
|
||||
[Test]
|
||||
public void Properties_Invalid ()
|
||||
{
|
||||
var client = HttpClientTestHelpers.CreateHttpClient ();
|
||||
var client = new HttpClient ();
|
||||
try {
|
||||
client.MaxResponseContentBufferSize = 0;
|
||||
Assert.Fail ("#1");
|
||||
@@ -446,7 +449,7 @@ namespace MonoTests.System.Net.Http
|
||||
});
|
||||
|
||||
try {
|
||||
var client = HttpClientTestHelpers.CreateHttpClient ();
|
||||
var client = HttpClientTestHelpers.CreateHttpClientWithHttpClientHandler ();
|
||||
var request = new HttpRequestMessage (HttpMethod.Get, $"http://localhost:{port}/Send_Complete_Default/");
|
||||
var response = client.SendAsync (request, HttpCompletionOption.ResponseHeadersRead).Result;
|
||||
|
||||
@@ -496,7 +499,7 @@ namespace MonoTests.System.Net.Http
|
||||
});
|
||||
|
||||
try {
|
||||
var client = HttpClientTestHelpers.CreateHttpClient ();
|
||||
var client = HttpClientTestHelpers.CreateHttpClientWithHttpClientHandler ();
|
||||
var request = new HttpRequestMessage (HttpMethod.Get, $"http://localhost:{port}/Send_Complete_Version_1_0/");
|
||||
request.Version = HttpVersion.Version10;
|
||||
var response = client.SendAsync (request, HttpCompletionOption.ResponseHeadersRead).Result;
|
||||
@@ -670,7 +673,7 @@ namespace MonoTests.System.Net.Http
|
||||
});
|
||||
|
||||
try {
|
||||
var client = HttpClientTestHelpers.CreateHttpClient ();
|
||||
var client = HttpClientTestHelpers.CreateHttpClientWithHttpClientHandler ();
|
||||
|
||||
client.DefaultRequestHeaders.Add("User-Agent", "MLK Android Phone 1.1.9");
|
||||
|
||||
@@ -706,7 +709,7 @@ namespace MonoTests.System.Net.Http
|
||||
});
|
||||
|
||||
try {
|
||||
var client = HttpClientTestHelpers.CreateHttpClient ();
|
||||
var client = HttpClientTestHelpers.CreateHttpClientWithHttpClientHandler ();
|
||||
|
||||
client.DefaultRequestHeaders.Add("Host", "customhost");
|
||||
|
||||
@@ -741,7 +744,7 @@ namespace MonoTests.System.Net.Http
|
||||
|
||||
try {
|
||||
try {
|
||||
var client = HttpClientTestHelpers.CreateHttpClient ();
|
||||
var client = HttpClientTestHelpers.CreateHttpClientWithHttpClientHandler ();
|
||||
client.DefaultRequestHeaders.TransferEncodingChunked = true;
|
||||
client.GetAsync ($"http://localhost:{port}/Send_Transfer_Encoding_Chunked_Needs_Content/").Wait ();
|
||||
// fails with
|
||||
@@ -783,7 +786,7 @@ namespace MonoTests.System.Net.Http
|
||||
});
|
||||
|
||||
try {
|
||||
var client = HttpClientTestHelpers.CreateHttpClient ();
|
||||
var client = HttpClientTestHelpers.CreateHttpClientWithHttpClientHandler ();
|
||||
client.DefaultRequestHeaders.TransferEncodingChunked = true;
|
||||
|
||||
client.GetAsync ($"http://localhost:{port}/Send_Transfer_Encoding_Chunked/").Wait ();
|
||||
@@ -813,7 +816,7 @@ namespace MonoTests.System.Net.Http
|
||||
});
|
||||
|
||||
try {
|
||||
var client = HttpClientTestHelpers.CreateHttpClient ();
|
||||
var client = HttpClientTestHelpers.CreateHttpClientWithHttpClientHandler ();
|
||||
client.DefaultRequestHeaders.TransferEncoding.Add (new TransferCodingHeaderValue ("chunked2"));
|
||||
|
||||
var request = new HttpRequestMessage (HttpMethod.Get, $"http://localhost:{port}/Send_Transfer_Encoding_Custom/");
|
||||
@@ -845,7 +848,7 @@ namespace MonoTests.System.Net.Http
|
||||
});
|
||||
|
||||
try {
|
||||
var client = HttpClientTestHelpers.CreateHttpClient ();
|
||||
var client = HttpClientTestHelpers.CreateHttpClientWithHttpClientHandler ();
|
||||
var request = new HttpRequestMessage (HttpMethod.Get, $"http://localhost:{port}/Send_Complete_Content/");
|
||||
Assert.IsTrue (request.Headers.TryAddWithoutValidation ("aa", "vv"), "#0");
|
||||
var response = client.SendAsync (request, HttpCompletionOption.ResponseHeadersRead).Result;
|
||||
@@ -876,7 +879,7 @@ namespace MonoTests.System.Net.Http
|
||||
});
|
||||
|
||||
try {
|
||||
var client = HttpClientTestHelpers.CreateHttpClient ();
|
||||
var client = HttpClientTestHelpers.CreateHttpClientWithHttpClientHandler ();
|
||||
client.MaxResponseContentBufferSize = 1000;
|
||||
var request = new HttpRequestMessage (HttpMethod.Get, $"http://localhost:{port}/Send_Complete_Content_MaxResponseContentBufferSize/");
|
||||
var response = client.SendAsync (request, HttpCompletionOption.ResponseHeadersRead).Result;
|
||||
@@ -902,7 +905,7 @@ namespace MonoTests.System.Net.Http
|
||||
});
|
||||
|
||||
try {
|
||||
var client = HttpClientTestHelpers.CreateHttpClient ();
|
||||
var client = HttpClientTestHelpers.CreateHttpClientWithHttpClientHandler ();
|
||||
client.MaxResponseContentBufferSize = 1000;
|
||||
var request = new HttpRequestMessage (HttpMethod.Get, $"http://localhost:{port}/Send_Complete_Content_MaxResponseContentBufferSize_Error/");
|
||||
|
||||
@@ -998,7 +1001,7 @@ namespace MonoTests.System.Net.Http
|
||||
});
|
||||
|
||||
try {
|
||||
var client = HttpClientTestHelpers.CreateHttpClient ();
|
||||
var client = HttpClientTestHelpers.CreateHttpClientWithHttpClientHandler ();
|
||||
var request = new HttpRequestMessage (HttpMethod.Get, $"http://localhost:{port}/Send_Complete_Error/");
|
||||
var response = client.SendAsync (request, HttpCompletionOption.ResponseHeadersRead).Result;
|
||||
|
||||
@@ -1022,7 +1025,7 @@ namespace MonoTests.System.Net.Http
|
||||
});
|
||||
|
||||
try {
|
||||
var client = HttpClientTestHelpers.CreateHttpClient ();
|
||||
var client = HttpClientTestHelpers.CreateHttpClientWithHttpClientHandler ();
|
||||
var r = new HttpRequestMessage (HttpMethod.Get, $"http://localhost:{port}/Send_Content_Get/");
|
||||
var response = client.SendAsync (r).Result;
|
||||
|
||||
@@ -1050,7 +1053,7 @@ namespace MonoTests.System.Net.Http
|
||||
});
|
||||
|
||||
try {
|
||||
var client = HttpClientTestHelpers.CreateHttpClient ();
|
||||
var client = HttpClientTestHelpers.CreateHttpClientWithHttpClientHandler ();
|
||||
var r = new HttpRequestMessage (HttpMethod.Get, $"http://localhost:{port}/Send_Content_BomEncoding/");
|
||||
var response = client.SendAsync (r).Result;
|
||||
|
||||
@@ -1076,7 +1079,7 @@ namespace MonoTests.System.Net.Http
|
||||
});
|
||||
|
||||
try {
|
||||
var client = HttpClientTestHelpers.CreateHttpClient ();
|
||||
var client = HttpClientTestHelpers.CreateHttpClientWithHttpClientHandler ();
|
||||
var r = new HttpRequestMessage (HttpMethod.Put, $"http://localhost:{port}/Send_Content_Put/");
|
||||
r.Content = new StringContent ("my text");
|
||||
var response = client.SendAsync (r).Result;
|
||||
@@ -1141,9 +1144,12 @@ namespace MonoTests.System.Net.Http
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void Send_Invalid ()
|
||||
{
|
||||
var client = HttpClientTestHelpers.CreateHttpClient ();
|
||||
var client = HttpClientTestHelpers.CreateHttpClientWithHttpClientHandler ();
|
||||
try {
|
||||
client.SendAsync (null).Wait (WaitTimeout);
|
||||
Assert.Fail ("#1");
|
||||
@@ -1237,7 +1243,7 @@ namespace MonoTests.System.Net.Http
|
||||
});
|
||||
|
||||
try {
|
||||
var client = HttpClientTestHelpers.CreateHttpClient ();
|
||||
var client = HttpClientTestHelpers.CreateHttpClientWithHttpClientHandler ();
|
||||
|
||||
client.DefaultRequestHeaders.TransferEncodingChunked = true;
|
||||
|
||||
@@ -1291,7 +1297,7 @@ namespace MonoTests.System.Net.Http
|
||||
});
|
||||
|
||||
try {
|
||||
var client = HttpClientTestHelpers.CreateHttpClient ();
|
||||
var client = HttpClientTestHelpers.CreateHttpClientWithHttpClientHandler ();
|
||||
|
||||
var imageContent = new StreamContent (new MemoryStream ());
|
||||
|
||||
@@ -1326,7 +1332,7 @@ namespace MonoTests.System.Net.Http
|
||||
AddListenerContext (listener, context); // add another request handler for the second request
|
||||
|
||||
try {
|
||||
var client = HttpClientTestHelpers.CreateHttpClient ();
|
||||
var client = HttpClientTestHelpers.CreateHttpClientWithHttpClientHandler ();
|
||||
var t1 = client.GetStringAsync ($"http://localhost:{port}/GetString_Many/");
|
||||
var t2 = client.GetStringAsync ($"http://localhost:{port}/GetString_Many/");
|
||||
Assert.IsTrue (Task.WaitAll (new [] { t1, t2 }, WaitTimeout));
|
||||
@@ -1352,7 +1358,7 @@ namespace MonoTests.System.Net.Http
|
||||
});
|
||||
|
||||
try {
|
||||
var client = HttpClientTestHelpers.CreateHttpClient ();
|
||||
var client = HttpClientTestHelpers.CreateHttpClientWithHttpClientHandler ();
|
||||
try {
|
||||
client.GetByteArrayAsync ($"http://localhost:{port}/GetByteArray_ServerError/").Wait (WaitTimeout);
|
||||
Assert.Fail ("#1");
|
||||
@@ -1511,7 +1517,7 @@ namespace MonoTests.System.Net.Http
|
||||
Assert.Ignore ("Throws System.NullReferenceException");
|
||||
|
||||
try {
|
||||
using (var client = HttpClientTestHelpers.CreateHttpClient ()) {
|
||||
using (var client = HttpClientTestHelpers.CreateHttpClientWithHttpClientHandler ()) {
|
||||
client.GetAsync ("http://255.255.255.255").Wait (WaitTimeout);
|
||||
}
|
||||
} catch (AggregateException e) {
|
||||
|
||||
@@ -95,7 +95,7 @@ namespace MonoTests.System.Net.Http
|
||||
[Test]
|
||||
public void Ctor_RelativeUri ()
|
||||
{
|
||||
var client = HttpClientTestHelpers.CreateHttpClient ();
|
||||
var client = new HttpClient ();
|
||||
client.BaseAddress = new Uri ("http://en.wikipedia.org/wiki/");
|
||||
var uri = new Uri ("Computer", UriKind.Relative);
|
||||
var req = new HttpRequestMessage (HttpMethod.Get, uri);
|
||||
@@ -120,7 +120,7 @@ namespace MonoTests.System.Net.Http
|
||||
[Test]
|
||||
public void Ctor_RelativeUriString ()
|
||||
{
|
||||
var client = HttpClientTestHelpers.CreateHttpClient ();
|
||||
var client = new HttpClient ();
|
||||
client.BaseAddress = new Uri ("http://en.wikipedia.org/wiki/");
|
||||
var req = new HttpRequestMessage (HttpMethod.Get, "Computer");
|
||||
// HttpRequestMessage does not rewrite it here.
|
||||
|
||||
+1
-1
@@ -26,7 +26,7 @@ namespace MonoTests.System.Web.Services.Description
|
||||
public class ServiceDescriptionTest
|
||||
{
|
||||
[Test]
|
||||
[Category ("MacNotWorking")] // https://bugzilla.xamarin.com/show_bug.cgi?id=51254
|
||||
[Category ("NotOnMac")] // https://bugzilla.xamarin.com/show_bug.cgi?id=51254
|
||||
public void SimpleWrite ()
|
||||
{
|
||||
ServiceDescription sd = new ServiceDescription ();
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
@@ -59,13 +59,14 @@ namespace System.Windows.Forms {
|
||||
public DataGridViewCheckBoxCell (bool threeState) : this()
|
||||
{
|
||||
this.threeState = threeState;
|
||||
editingCellFormattedValue = CheckState.Unchecked;
|
||||
if (threeState)
|
||||
editingCellFormattedValue = CheckState.Unchecked;
|
||||
}
|
||||
|
||||
public virtual object EditingCellFormattedValue {
|
||||
get { return editingCellFormattedValue; }
|
||||
set {
|
||||
if (FormattedValueType == null || value == null || value.GetType() != FormattedValueType || !(value is Boolean) || !(value is CheckState)) {
|
||||
if (FormattedValueType == null || value == null || !FormattedValueType.IsAssignableFrom(value.GetType())) {
|
||||
throw new ArgumentException("Cannot set this property.");
|
||||
}
|
||||
editingCellFormattedValue = value;
|
||||
@@ -192,7 +193,11 @@ namespace System.Windows.Forms {
|
||||
|
||||
public virtual void PrepareEditingCellForEdit (bool selectAll)
|
||||
{
|
||||
editingCellFormattedValue = GetCurrentValue ();
|
||||
CheckState cs = GetCurrentValue();
|
||||
if (threeState)
|
||||
editingCellFormattedValue = cs;
|
||||
else
|
||||
editingCellFormattedValue = cs == CheckState.Checked;
|
||||
}
|
||||
|
||||
public override string ToString ()
|
||||
|
||||
@@ -1071,7 +1071,7 @@ namespace System.Windows.Forms
|
||||
return TreeView.ImageList.Images.IndexOfKey (selected_image_key);
|
||||
if (!string.IsNullOrEmpty (TreeView.SelectedImageKey))
|
||||
return TreeView.ImageList.Images.IndexOfKey (TreeView.SelectedImageKey);
|
||||
if (TreeView.SelectedImageIndex >= 0)
|
||||
if (selected_image_index == -1 && TreeView.SelectedImageIndex >= 0)
|
||||
return TreeView.SelectedImageIndex;
|
||||
} else {
|
||||
if (image_index >= 0)
|
||||
@@ -1080,12 +1080,9 @@ namespace System.Windows.Forms
|
||||
return TreeView.ImageList.Images.IndexOfKey (image_key);
|
||||
if (!string.IsNullOrEmpty (TreeView.ImageKey))
|
||||
return TreeView.ImageList.Images.IndexOfKey (TreeView.ImageKey);
|
||||
if (TreeView.ImageIndex >= 0)
|
||||
if (image_index == -1 && TreeView.ImageIndex >= 0)
|
||||
return TreeView.ImageIndex;
|
||||
}
|
||||
|
||||
if (TreeView.ImageList.Images.Count > 0)
|
||||
return 0;
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
+30
@@ -199,6 +199,36 @@ namespace MonoTests.System.Windows.Forms
|
||||
Assert.AreEqual (null, c.EditedFormattedValue, "A1");
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void EditingCellFormattedValue()
|
||||
{
|
||||
var boolCheckBoxCell = new DataGridViewCheckBoxCell();
|
||||
Assert.AreEqual(false, boolCheckBoxCell.EditingCellFormattedValue, "A1");
|
||||
boolCheckBoxCell.EditingCellFormattedValue = true;
|
||||
Assert.AreEqual(true, boolCheckBoxCell.EditingCellFormattedValue, "A2");
|
||||
|
||||
var treeStateCheckBoxCell = new DataGridViewCheckBoxCell(true);
|
||||
Assert.AreEqual(CheckState.Unchecked, treeStateCheckBoxCell.EditingCellFormattedValue, "A3");
|
||||
treeStateCheckBoxCell.EditingCellFormattedValue = CheckState.Checked;
|
||||
Assert.AreEqual(CheckState.Checked, treeStateCheckBoxCell.EditingCellFormattedValue, "A4");
|
||||
}
|
||||
|
||||
[Test]
|
||||
[ExpectedException(typeof(ArgumentException))]
|
||||
public void BoolEditingCellFormattedValueCheckStateSet()
|
||||
{
|
||||
var boolCheckBoxCell = new DataGridViewCheckBoxCell();
|
||||
boolCheckBoxCell.EditingCellFormattedValue = CheckState.Checked;
|
||||
}
|
||||
|
||||
[Test]
|
||||
[ExpectedException(typeof(ArgumentException))]
|
||||
public void TreeStateEditingCellFormattedValueBoolSet()
|
||||
{
|
||||
var treeStateCheckBoxCell = new DataGridViewCheckBoxCell(true);
|
||||
treeStateCheckBoxCell.EditingCellFormattedValue = false;
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void FormattedValueType ()
|
||||
{
|
||||
|
||||
@@ -90,7 +90,15 @@ namespace Microsoft.CSharp
|
||||
* reset MONO_GC_PARAMS - we are invoking compiler possibly with another GC that
|
||||
* may not handle some of the options causing compilation failure
|
||||
*/
|
||||
mcs.StartInfo.EnvironmentVariables ["MONO_GC_PARAMS"] = String.Empty;
|
||||
mcs.StartInfo.EnvironmentVariables.Remove ("MONO_GC_PARAMS");
|
||||
|
||||
#if XAMMAC_4_5
|
||||
/*/
|
||||
* reset MONO_CFG_DIR - we don't want to propagate the current config to another mono
|
||||
* since it's specific to the XM application and won't work on system mono.
|
||||
*/
|
||||
mcs.StartInfo.EnvironmentVariables.Remove ("MONO_CFG_DIR");
|
||||
#endif
|
||||
|
||||
mcs.StartInfo.CreateNoWindow=true;
|
||||
mcs.StartInfo.UseShellExecute=false;
|
||||
|
||||
@@ -3616,21 +3616,13 @@
|
||||
</When>
|
||||
<When Condition="'$(Platform)' == 'monotouch_watch'">
|
||||
<ItemGroup>
|
||||
<Compile Include="..\..\..\external\corefx\src\Common\src\Interop\OSX\Interop.CoreFoundation.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Common\src\Interop\OSX\Interop.EventStream.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Common\src\Interop\OSX\Interop.Libraries.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Common\src\Interop\OSX\Interop.RunLoop.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Common\src\Interop\Unix\Interop.Errors.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Common\src\Interop\Unix\Interop.IOErrors.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Common\src\Interop\Unix\Interop.Libraries.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Common\src\Interop\Unix\System.Native\Interop.RealPath.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Common\src\Interop\Unix\System.Native\Interop.Sync.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Common\src\Interop\Unix\System.Net.Security.Native\Interop.GssApiException.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Common\src\Interop\Unix\System.Net.Security.Native\Interop.GssBuffer.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Common\src\Interop\Unix\System.Net.Security.Native\Interop.NetSecurityNative.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Common\src\Microsoft\Win32\SafeHandles\GssSafeHandles.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Common\src\Microsoft\Win32\SafeHandles\SafeCreateHandle.OSX.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Common\src\Microsoft\Win32\SafeHandles\SafeEventStreamHandle.OSX.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Common\src\System\Net\ContextAwareResult.Unix.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Common\src\System\Net\ContextFlagsAdapterPal.Unix.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Common\src\System\Net\Security\CertificateHelper.Unix.cs" />
|
||||
@@ -3639,7 +3631,7 @@
|
||||
<Compile Include="..\..\..\external\corefx\src\Common\src\System\Net\Security\Unix\SafeDeleteNegoContext.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Common\src\System\Net\Security\Unix\SafeFreeCredentials.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Common\src\System\Net\Security\Unix\SafeFreeNegoCredentials.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\System.IO.FileSystem.Watcher\src\System\IO\FileSystemWatcher.OSX.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\System.IO.FileSystem.Watcher\src\System\IO\FileSystemWatcher.UnknownUnix.cs" />
|
||||
<Compile Include="..\Mono.Security\Mono.Security.Cryptography\PKCS8.cs" />
|
||||
<Compile Include="..\Mono.Security\Mono.Security.X509.Extensions\AuthorityKeyIdentifierExtension.cs" />
|
||||
<Compile Include="..\Mono.Security\Mono.Security.X509.Extensions\BasicConstraintsExtension.cs" />
|
||||
@@ -3723,21 +3715,13 @@
|
||||
</When>
|
||||
<When Condition="'$(Platform)' == 'monotouch_tv'">
|
||||
<ItemGroup>
|
||||
<Compile Include="..\..\..\external\corefx\src\Common\src\Interop\OSX\Interop.CoreFoundation.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Common\src\Interop\OSX\Interop.EventStream.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Common\src\Interop\OSX\Interop.Libraries.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Common\src\Interop\OSX\Interop.RunLoop.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Common\src\Interop\Unix\Interop.Errors.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Common\src\Interop\Unix\Interop.IOErrors.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Common\src\Interop\Unix\Interop.Libraries.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Common\src\Interop\Unix\System.Native\Interop.RealPath.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Common\src\Interop\Unix\System.Native\Interop.Sync.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Common\src\Interop\Unix\System.Net.Security.Native\Interop.GssApiException.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Common\src\Interop\Unix\System.Net.Security.Native\Interop.GssBuffer.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Common\src\Interop\Unix\System.Net.Security.Native\Interop.NetSecurityNative.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Common\src\Microsoft\Win32\SafeHandles\GssSafeHandles.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Common\src\Microsoft\Win32\SafeHandles\SafeCreateHandle.OSX.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Common\src\Microsoft\Win32\SafeHandles\SafeEventStreamHandle.OSX.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Common\src\System\Net\ContextAwareResult.Unix.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Common\src\System\Net\ContextAwareResult.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Common\src\System\Net\ContextFlagsAdapterPal.Unix.cs" />
|
||||
@@ -3750,7 +3734,7 @@
|
||||
<Compile Include="..\..\..\external\corefx\src\Common\src\System\Net\Security\Unix\SafeFreeCredentials.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Common\src\System\Net\Security\Unix\SafeFreeNegoCredentials.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Common\src\System\Net\TlsStream.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\System.IO.FileSystem.Watcher\src\System\IO\FileSystemWatcher.OSX.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\System.IO.FileSystem.Watcher\src\System\IO\FileSystemWatcher.UnknownUnix.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\System.Net.HttpListener\src\System\Net\WebSockets\HttpListenerWebSocketContext.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\System.Net.Requests\src\System\Net\CommandStream.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\System.Net.Requests\src\System\Net\FtpControlStream.cs" />
|
||||
@@ -3865,21 +3849,13 @@
|
||||
</When>
|
||||
<When Condition="'$(Platform)' == 'monotouch'">
|
||||
<ItemGroup>
|
||||
<Compile Include="..\..\..\external\corefx\src\Common\src\Interop\OSX\Interop.CoreFoundation.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Common\src\Interop\OSX\Interop.EventStream.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Common\src\Interop\OSX\Interop.Libraries.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Common\src\Interop\OSX\Interop.RunLoop.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Common\src\Interop\Unix\Interop.Errors.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Common\src\Interop\Unix\Interop.IOErrors.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Common\src\Interop\Unix\Interop.Libraries.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Common\src\Interop\Unix\System.Native\Interop.RealPath.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Common\src\Interop\Unix\System.Native\Interop.Sync.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Common\src\Interop\Unix\System.Net.Security.Native\Interop.GssApiException.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Common\src\Interop\Unix\System.Net.Security.Native\Interop.GssBuffer.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Common\src\Interop\Unix\System.Net.Security.Native\Interop.NetSecurityNative.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Common\src\Microsoft\Win32\SafeHandles\GssSafeHandles.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Common\src\Microsoft\Win32\SafeHandles\SafeCreateHandle.OSX.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Common\src\Microsoft\Win32\SafeHandles\SafeEventStreamHandle.OSX.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Common\src\System\Net\ContextAwareResult.Unix.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Common\src\System\Net\ContextAwareResult.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Common\src\System\Net\ContextFlagsAdapterPal.Unix.cs" />
|
||||
@@ -3892,7 +3868,7 @@
|
||||
<Compile Include="..\..\..\external\corefx\src\Common\src\System\Net\Security\Unix\SafeFreeCredentials.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Common\src\System\Net\Security\Unix\SafeFreeNegoCredentials.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Common\src\System\Net\TlsStream.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\System.IO.FileSystem.Watcher\src\System\IO\FileSystemWatcher.OSX.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\System.IO.FileSystem.Watcher\src\System\IO\FileSystemWatcher.UnknownUnix.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\System.Net.HttpListener\src\System\Net\WebSockets\HttpListenerWebSocketContext.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\System.Net.Requests\src\System\Net\CommandStream.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\System.Net.Requests\src\System\Net\FtpControlStream.cs" />
|
||||
|
||||
@@ -59,7 +59,7 @@ public class SslStreamTest {
|
||||
}
|
||||
|
||||
[Test] //bug https://bugzilla.novell.com/show_bug.cgi?id=457120
|
||||
[Category ("MacNotWorking")] // Works but launches a prompt on 10.12 that will fail if you don't click in a few seconds
|
||||
[Category ("NotOnMac")] // Works but launches a prompt on 10.12 that will fail if you don't click in a few seconds
|
||||
[Category ("NotWorking")] // https://github.com/mono/mono/issues/8450
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
|
||||
@@ -201,6 +201,9 @@ namespace MonoTests.System.Net.Sockets
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void Group ()
|
||||
{
|
||||
IPAddress group;
|
||||
@@ -234,6 +237,9 @@ namespace MonoTests.System.Net.Sockets
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void InterfaceIndex ()
|
||||
{
|
||||
IPAddress group;
|
||||
@@ -296,6 +302,9 @@ namespace MonoTests.System.Net.Sockets
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void LocalAddress ()
|
||||
{
|
||||
IPAddress group;
|
||||
|
||||
+3
-3
@@ -582,7 +582,7 @@ mgk3bWUV6ChegutbguiKrI/DbO7wPiDLxw==
|
||||
}
|
||||
|
||||
[Test]
|
||||
[Category ("MacNotWorking")] // SecCertificateCreateWithData does different things on 10.11 vs 10.12 with invalid certificates https://bugzilla.xamarin.com/show_bug.cgi?id=53689
|
||||
[Category ("NotOnMac")] // SecCertificateCreateWithData does different things on 10.11 vs 10.12 with invalid certificates https://bugzilla.xamarin.com/show_bug.cgi?id=53689
|
||||
[ExpectedException (typeof (CryptographicException))]
|
||||
public void Pkcs12_1_WithoutPassword ()
|
||||
{
|
||||
@@ -597,7 +597,7 @@ mgk3bWUV6ChegutbguiKrI/DbO7wPiDLxw==
|
||||
}
|
||||
|
||||
[Test]
|
||||
[Category ("MacNotWorking")] // SecCertificateCreateWithData does different things on 10.11 vs 10.12 with invalid certificates https://bugzilla.xamarin.com/show_bug.cgi?id=53689
|
||||
[Category ("NotOnMac")] // SecCertificateCreateWithData does different things on 10.11 vs 10.12 with invalid certificates https://bugzilla.xamarin.com/show_bug.cgi?id=53689
|
||||
public void Pkcs12_2_Properties ()
|
||||
{
|
||||
CheckPkcs12 (new X509Certificate (farscape_nopwd_pfx));
|
||||
@@ -729,7 +729,7 @@ mgk3bWUV6ChegutbguiKrI/DbO7wPiDLxw==
|
||||
|
||||
[Test]
|
||||
[ExpectedException (typeof (CryptographicException))]
|
||||
[Category ("MacNotWorking")] // SecCertificateCreateWithData does different things on 10.11 vs 10.12 with invalid certificates https://bugzilla.xamarin.com/show_bug.cgi?id=53689
|
||||
[Category ("NotOnMac")] // SecCertificateCreateWithData does different things on 10.11 vs 10.12 with invalid certificates https://bugzilla.xamarin.com/show_bug.cgi?id=53689
|
||||
public void Pkcs7_Ctor ()
|
||||
{
|
||||
new X509Certificate (farscape_pkcs7);
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
System.IO/DefaultWatcher.cs
|
||||
System.IO/FAMWatcher.cs
|
||||
System.IO/NullFileWatcher.cs
|
||||
System.IO/FileAction.cs
|
||||
System.IO/FileSystemWatcher.cs
|
||||
System.IO/IFileWatcher.cs
|
||||
System.IO/KeventWatcher.cs
|
||||
System.IO/SearchPattern.cs
|
||||
System.IO/CoreFXFileSystemWatcherProxy.cs
|
||||
@@ -1,4 +1,2 @@
|
||||
#include mono_fsw.sources
|
||||
../../../external/corefx/src/System.IO.FileSystem.Watcher/src/System/IO/FileSystemWatcher.UnknownUnix.cs
|
||||
corefx/Unix/Interop.cs
|
||||
corefx/Unix/Interop.Read.cs
|
||||
@@ -4,13 +4,3 @@
|
||||
|
||||
Mono.AppleTls/MonoCertificatePal.Mobile.cs
|
||||
Mono.AppleTls/SafeHandles.cs
|
||||
|
||||
../../../external/corefx/src/Common/src/Interop/OSX/Interop.Libraries.cs
|
||||
../../../external/corefx/src/Common/src/Interop/OSX/Interop.EventStream.cs
|
||||
../../../external/corefx/src/Common/src/Interop/OSX/Interop.RunLoop.cs
|
||||
../../../external/corefx/src/Common/src/Interop/OSX/Interop.CoreFoundation.cs
|
||||
../../../external/corefx/src/Common/src/Interop/Unix/System.Native/Interop.Sync.cs
|
||||
../../../external/corefx/src/Common/src/Interop/Unix/System.Native/Interop.RealPath.cs
|
||||
../../../external/corefx/src/System.IO.FileSystem.Watcher/src/System/IO/FileSystemWatcher.OSX.cs
|
||||
../../../external/corefx/src/Common/src/Microsoft/Win32/SafeHandles/SafeCreateHandle.OSX.cs
|
||||
../../../external/corefx/src/Common/src/Microsoft/Win32/SafeHandles/SafeEventStreamHandle.OSX.cs
|
||||
@@ -1 +1,2 @@
|
||||
#include monotouch_System.dll.exclude.sources
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
#include monotouch_System.dll.exclude.sources
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
#include common.sources
|
||||
#include common_networking.sources
|
||||
#include mono_fsw.sources
|
||||
|
||||
Microsoft.CSharp/CSharpCodeGenerator.cs
|
||||
Microsoft.VisualBasic/VBCodeGenerator.cs
|
||||
@@ -134,6 +133,17 @@ System.Diagnostics/PerformanceCounterType.cs
|
||||
System.Diagnostics/TraceSourceInfo.cs
|
||||
System.Diagnostics/Win32EventLog.cs
|
||||
|
||||
System.IO/DefaultWatcher.cs
|
||||
System.IO/FAMWatcher.cs
|
||||
System.IO/NullFileWatcher.cs
|
||||
System.IO/FileAction.cs
|
||||
System.IO/FileSystemWatcher.cs
|
||||
System.IO/IFileWatcher.cs
|
||||
System.IO/KeventWatcher.cs
|
||||
System.IO/SearchPattern.cs
|
||||
|
||||
System.IO/CoreFXFileSystemWatcherProxy.cs
|
||||
|
||||
System.IO.Ports/Handshake.cs
|
||||
System.IO.Ports/ISerialStream.cs
|
||||
System.IO.Ports/Parity.cs
|
||||
|
||||
@@ -93,9 +93,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,FEATURE_DEFAULT_INTERFACES,HAS_CORLIB_CONTRACTS
|
||||
|
||||
ifdef NO_SRE
|
||||
PROFILE_TEST_HARNESS_EXCLUDES := $(PROFILE_TEST_HARNESS_EXCLUDES)SRE,
|
||||
else
|
||||
ifndef NO_SRE
|
||||
LIB_MCS_FLAGS += -d:MONO_FEATURE_SRE
|
||||
endif
|
||||
|
||||
|
||||
@@ -252,20 +252,18 @@ namespace System.Globalization
|
||||
if (source.IsEmpty)
|
||||
return;
|
||||
|
||||
var ti = CultureInfo.CurrentCulture.TextInfo;
|
||||
|
||||
fixed (char* pSource = &MemoryMarshal.GetReference (source))
|
||||
fixed (char* pResult = &MemoryMarshal.GetReference (destination)) {
|
||||
int length = 0;
|
||||
char* a = pSource, b = pResult;
|
||||
if (toUpper) {
|
||||
while (length < source.Length) {
|
||||
*b++ = ti.ToUpper (*a++);
|
||||
*b++ = this.ToUpper (*a++);
|
||||
length++;
|
||||
}
|
||||
} else {
|
||||
while (length < source.Length) {
|
||||
*b++ = ti.ToLower (*a++);
|
||||
*b++ = this.ToLower (*a++);
|
||||
length++;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -609,8 +609,12 @@ namespace System.IO.IsolatedStorage {
|
||||
|
||||
try {
|
||||
File.Copy (source_full_path, dest_full_path, overwrite);
|
||||
} catch (IOException) {
|
||||
throw new IsolatedStorageException ("Operation not allowed.");
|
||||
}
|
||||
catch (IOException e) {
|
||||
throw new IsolatedStorageException ("Operation not allowed.", e);
|
||||
}
|
||||
catch (UnauthorizedAccessException e) {
|
||||
throw new IsolatedStorageException ("Operation not allowed.", e);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -872,8 +876,12 @@ namespace System.IO.IsolatedStorage {
|
||||
|
||||
try {
|
||||
Directory.Move (src_full_path, dest_full_path);
|
||||
} catch (IOException) {
|
||||
throw new IsolatedStorageException ("Operation not allowed.");
|
||||
}
|
||||
catch (IOException e) {
|
||||
throw new IsolatedStorageException ("Operation not allowed.", e);
|
||||
}
|
||||
catch (UnauthorizedAccessException e) {
|
||||
throw new IsolatedStorageException ("Operation not allowed.", e);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -904,8 +912,8 @@ namespace System.IO.IsolatedStorage {
|
||||
|
||||
try {
|
||||
File.Move (source_full_path, dest_full_path);
|
||||
} catch (IOException) {
|
||||
throw new IsolatedStorageException ("Operation not allowed.");
|
||||
} catch (UnauthorizedAccessException e) {
|
||||
throw new IsolatedStorageException ("Operation not allowed.", e);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -402,9 +402,10 @@ namespace System.Reflection.Emit
|
||||
}
|
||||
}
|
||||
|
||||
[MonoTODO]
|
||||
public override bool ReflectionOnly {
|
||||
get { return base.ReflectionOnly; }
|
||||
get {
|
||||
return access == (uint)AssemblyBuilderAccess.ReflectionOnly;
|
||||
}
|
||||
}
|
||||
|
||||
public void AddResourceFile (string name, string fileName)
|
||||
|
||||
@@ -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 ();
|
||||
@@ -64,6 +200,10 @@ namespace System.Reflection.Emit
|
||||
}
|
||||
|
||||
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 ();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -36,6 +36,8 @@ namespace System.Reflection.Emit
|
||||
{
|
||||
public class ConstructorBuilder : ConstructorInfo
|
||||
{
|
||||
internal ConstructorBuilder () {}
|
||||
|
||||
public bool InitLocals { get; set; }
|
||||
|
||||
public override MethodAttributes Attributes {
|
||||
@@ -44,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 ();
|
||||
@@ -98,6 +119,7 @@ namespace System.Reflection.Emit
|
||||
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 (); }
|
||||
@@ -106,6 +128,8 @@ namespace System.Reflection.Emit
|
||||
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 (); }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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 (); }
|
||||
@@ -148,6 +151,8 @@ namespace System.Reflection.Emit
|
||||
|
||||
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 ();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -39,11 +39,8 @@ namespace System.Reflection.Emit
|
||||
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 IsByRefLike { get { throw new PlatformNotSupportedException (); } }
|
||||
public override bool IsConstructedGenericType { get { throw new PlatformNotSupportedException (); } }
|
||||
public override bool IsSZArray { get { throw new PlatformNotSupportedException (); } }
|
||||
public override bool IsTypeDefinition { get { throw new PlatformNotSupportedException (); } }
|
||||
public override bool IsVariableBoundArray { 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 (); } }
|
||||
@@ -81,6 +78,7 @@ namespace System.Reflection.Emit
|
||||
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 (); }
|
||||
|
||||
@@ -32,6 +32,8 @@ namespace System.Reflection.Emit
|
||||
{
|
||||
public class EventBuilder
|
||||
{
|
||||
private EventBuilder () {}
|
||||
|
||||
public void AddOtherMethod (MethodBuilder mdBuilder)
|
||||
{
|
||||
throw new PlatformNotSupportedException ();
|
||||
|
||||
@@ -44,9 +44,13 @@ namespace System.Reflection.Emit
|
||||
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 (); }
|
||||
}
|
||||
|
||||
@@ -43,14 +43,9 @@ namespace System.Reflection.Emit
|
||||
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 IsByRefLike { 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 IsSZArray { get { throw new PlatformNotSupportedException (); } }
|
||||
public override bool IsTypeDefinition { get { throw new PlatformNotSupportedException (); } }
|
||||
public override bool IsVariableBoundArray { 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 (); } }
|
||||
@@ -70,6 +65,7 @@ namespace System.Reflection.Emit
|
||||
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 (); }
|
||||
@@ -87,9 +83,11 @@ namespace System.Reflection.Emit
|
||||
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 (); }
|
||||
|
||||
@@ -38,7 +38,7 @@ namespace System.Reflection.Emit
|
||||
{
|
||||
}
|
||||
|
||||
public int ILOffset {
|
||||
public virtual int ILOffset {
|
||||
get {
|
||||
throw new PlatformNotSupportedException ();
|
||||
}
|
||||
@@ -217,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 ();
|
||||
|
||||
@@ -41,7 +41,6 @@ namespace System.Reflection.Emit
|
||||
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 IsConstructedGenericMethod { get { 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 (); } }
|
||||
@@ -52,6 +51,8 @@ namespace System.Reflection.Emit
|
||||
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 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 (); }
|
||||
@@ -74,10 +75,13 @@ namespace System.Reflection.Emit
|
||||
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 (); }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
@@ -35,15 +35,24 @@ namespace System.Reflection.Emit
|
||||
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(); }
|
||||
@@ -57,18 +66,38 @@ namespace System.Reflection.Emit
|
||||
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();
|
||||
}
|
||||
|
||||
|
||||
@@ -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 ();
|
||||
}
|
||||
@@ -87,6 +87,9 @@ 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 ();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ using System.Runtime.InteropServices;
|
||||
|
||||
namespace System.Reflection.Emit
|
||||
{
|
||||
public class SignatureHelper
|
||||
public class SignatureHelper : _SignatureHelper
|
||||
{
|
||||
SignatureHelper ()
|
||||
{
|
||||
@@ -118,6 +118,18 @@ namespace System.Reflection.Emit
|
||||
|
||||
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 ();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -39,23 +39,18 @@ namespace System.Reflection.Emit
|
||||
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 IsByRefLike { 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 IsSecurityCritical { get { throw new PlatformNotSupportedException (); } }
|
||||
public override bool IsSecuritySafeCritical { get { throw new PlatformNotSupportedException (); } }
|
||||
public override bool IsSecurityTransparent { get { throw new PlatformNotSupportedException (); } }
|
||||
public override bool IsSZArray { get { throw new PlatformNotSupportedException (); } }
|
||||
public override bool IsTypeDefinition { get { throw new PlatformNotSupportedException (); } }
|
||||
public override bool IsVariableBoundArray { 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 (); } }
|
||||
@@ -65,6 +60,8 @@ namespace System.Reflection.Emit
|
||||
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 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 (); }
|
||||
@@ -128,7 +125,8 @@ namespace System.Reflection.Emit
|
||||
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 (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 (); }
|
||||
@@ -136,6 +134,7 @@ namespace System.Reflection.Emit
|
||||
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 (); }
|
||||
|
||||
@@ -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
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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)]
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
@@ -518,7 +518,7 @@ namespace System.Runtime.InteropServices
|
||||
|
||||
return (IntPtr)(-1);
|
||||
}
|
||||
#else
|
||||
#elif !MONOTOUCH
|
||||
public static IntPtr GetHINSTANCE (Module m) => throw new PlatformNotSupportedException();
|
||||
public static IntPtr GetIDispatchForObject (object o) => throw new PlatformNotSupportedException();
|
||||
public static object GetTypedObjectForIUnknown (IntPtr pUnk, Type t) => throw new PlatformNotSupportedException();
|
||||
@@ -556,7 +556,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);
|
||||
|
||||
@@ -606,7 +606,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);
|
||||
@@ -711,7 +711,7 @@ namespace System.Runtime.InteropServices
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !FULL_AOT_RUNTIME
|
||||
#if !FULL_AOT_RUNTIME && !MONOTOUCH
|
||||
|
||||
#if !NETCORE
|
||||
|
||||
@@ -1134,7 +1134,7 @@ namespace System.Runtime.InteropServices
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !FULL_AOT_RUNTIME
|
||||
#if !FULL_AOT_RUNTIME && !MONOTOUCH
|
||||
[Obsolete]
|
||||
|
||||
public static void ReleaseThreadCache()
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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)]
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
//
|
||||
// (C) 2002 Ximian, Inc.
|
||||
|
||||
#if !FULL_AOT_RUNTIME
|
||||
#if !FULL_AOT_RUNTIME && !MONOTOUCH
|
||||
namespace System.Runtime.InteropServices
|
||||
{
|
||||
[Obsolete]
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
//
|
||||
// (C) 2002 Ximian, Inc.
|
||||
|
||||
#if !FULL_AOT_RUNTIME
|
||||
#if !FULL_AOT_RUNTIME && !MONOTOUCH
|
||||
namespace System.Runtime.InteropServices
|
||||
{
|
||||
[Obsolete]
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
@@ -46,7 +46,11 @@ namespace System {
|
||||
|
||||
public override void Flush ()
|
||||
{
|
||||
string s = sb.ToString ();
|
||||
string s;
|
||||
lock (sb) {
|
||||
s = sb.ToString ();
|
||||
sb.Length = 0;
|
||||
}
|
||||
try {
|
||||
xamarin_log (s);
|
||||
}
|
||||
@@ -56,14 +60,14 @@ namespace System {
|
||||
direct_write_to_stdout (Environment.NewLine);
|
||||
} catch (Exception){}
|
||||
}
|
||||
sb.Length = 0;
|
||||
}
|
||||
|
||||
// minimum to override - see http://msdn.microsoft.com/en-us/library/system.io.textwriter.aspx
|
||||
public override void Write (char value)
|
||||
{
|
||||
try {
|
||||
sb.Append (value);
|
||||
lock (sb)
|
||||
sb.Append (value);
|
||||
}
|
||||
catch (Exception) {
|
||||
}
|
||||
@@ -73,9 +77,11 @@ namespace System {
|
||||
public override void Write (string value)
|
||||
{
|
||||
try {
|
||||
sb.Append (value);
|
||||
if (value != null && value.Length >= CoreNewLine.Length && EndsWithNewLine (value))
|
||||
Flush ();
|
||||
lock (sb) {
|
||||
sb.Append (value);
|
||||
if (EndsWithNewLine (sb))
|
||||
Flush ();
|
||||
}
|
||||
}
|
||||
catch (Exception) {
|
||||
}
|
||||
@@ -84,26 +90,21 @@ namespace System {
|
||||
/* Called from TextWriter:WriteLine(string) */
|
||||
public override void Write(char[] buffer, int index, int count) {
|
||||
try {
|
||||
sb.Append (buffer);
|
||||
if (buffer != null && buffer.Length >= CoreNewLine.Length && EndsWithNewLine (buffer))
|
||||
Flush ();
|
||||
lock (sb) {
|
||||
sb.Append (buffer, index, count);
|
||||
if (EndsWithNewLine (sb))
|
||||
Flush ();
|
||||
}
|
||||
}
|
||||
catch (Exception) {
|
||||
}
|
||||
}
|
||||
|
||||
bool EndsWithNewLine (string value)
|
||||
bool EndsWithNewLine (StringBuilder value)
|
||||
{
|
||||
for (int i = 0, v = value.Length - CoreNewLine.Length; i < CoreNewLine.Length; ++i, ++v) {
|
||||
if (value [v] != CoreNewLine [i])
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
if (value.Length < CoreNewLine.Length)
|
||||
return false;
|
||||
|
||||
bool EndsWithNewLine (char[] value)
|
||||
{
|
||||
for (int i = 0, v = value.Length - CoreNewLine.Length; i < CoreNewLine.Length; ++i, ++v) {
|
||||
if (value [v] != CoreNewLine [i])
|
||||
return false;
|
||||
|
||||
@@ -776,5 +776,23 @@ namespace MonoTests.System.Globalization
|
||||
|
||||
Assert.IsTrue (f ().Wait (5 * 1000), "#1");
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void SpanToUpperInvariantDoesntUseCurrentCulture ()
|
||||
{
|
||||
string testStr = "test";
|
||||
var dst = new Span<char> (new char [testStr.Length]);
|
||||
CultureInfo savedCulture = CultureInfo.CurrentCulture;
|
||||
CultureInfo.CurrentCulture = new InterceptingLocale ();
|
||||
testStr.AsSpan ().ToUpperInvariant (dst); // should not throw InvalidOperationException ("Shouldn't be called.")
|
||||
CultureInfo.CurrentCulture = savedCulture;
|
||||
Assert.AreEqual ("TEST", dst.ToString ());
|
||||
}
|
||||
|
||||
private class InterceptingLocale : CultureInfo
|
||||
{
|
||||
public InterceptingLocale () : base (string.Empty) { }
|
||||
public override TextInfo TextInfo => throw new InvalidOperationException ("Shouldn't be called.");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2595,6 +2595,9 @@ namespace MonoTests.System.IO
|
||||
public static extern int symlink (string oldpath, string newpath);
|
||||
|
||||
[Test]
|
||||
#if MONOTOUCH_TV
|
||||
[Ignore ("See bug #59239: https://bugzilla.xamarin.com/show_bug.cgi?id=59239")]
|
||||
#endif
|
||||
[Category ("NotWasm")]
|
||||
public void SymLinkStats() {
|
||||
if (!RunningOnUnix)
|
||||
@@ -2652,7 +2655,7 @@ namespace MonoTests.System.IO
|
||||
|
||||
[Test]
|
||||
#if MONOTOUCH_TV
|
||||
[Ignore ("See bug #59239")]
|
||||
[Ignore ("See bug #59239: https://bugzilla.xamarin.com/show_bug.cgi?id=59239")]
|
||||
#endif
|
||||
[Category ("NotWasm")]
|
||||
public void SymLinkLoop ()
|
||||
|
||||
@@ -1906,6 +1906,17 @@ public class AssemblyBuilderTest
|
||||
});
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void GetReflectionOnly ()
|
||||
{
|
||||
// Regression test for 13028.
|
||||
// Asserts ReflectionOnly is actually implemented.
|
||||
AssemblyBuilder ab1 = genAssembly ();
|
||||
AssemblyBuilder ab2 = genAssembly (AssemblyBuilderAccess.ReflectionOnly);
|
||||
Assert.IsFalse (ab1.ReflectionOnly, "#1");
|
||||
Assert.IsTrue (ab2.ReflectionOnly, "#2");
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -658,6 +658,15 @@ namespace MonoTests.System.Reflection
|
||||
Assert.AreEqual (10, pi2.GetGetMethod ().Invoke (10, null));
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void NullableTestsStatic ()
|
||||
{
|
||||
Nullable<Double> val = new Nullable<Double>(new Double());
|
||||
MethodInfo mi = typeof (Nullable<Double>).GetMethod ("op_Implicit");
|
||||
object obj = val;
|
||||
mi.Invoke(null, new[] { obj });
|
||||
}
|
||||
|
||||
public static void foo_generic<T> ()
|
||||
{
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
using System;
|
||||
using System.Threading;
|
||||
using System.Reflection;
|
||||
#if !FULL_AOT_RUNTIME
|
||||
#if !MONOTOUCH && !FULL_AOT_RUNTIME
|
||||
using System.Reflection.Emit;
|
||||
#endif
|
||||
using System.Runtime.InteropServices;
|
||||
@@ -535,7 +535,7 @@ namespace MonoTests.System.Reflection
|
||||
public sealed class C { }
|
||||
public sealed class D { }
|
||||
|
||||
#if !FULL_AOT_RUNTIME
|
||||
#if !MONOTOUCH && !FULL_AOT_RUNTIME
|
||||
[Test]
|
||||
// https://github.com/mono/mono/issues/11302
|
||||
public void CustomModifiersOrder()
|
||||
|
||||
Loaded 100 of 185 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user