[Mono-list] System.Reflection and MethodImplOptions

Matt Kimball matt@kimball.net
Mon, 07 Jan 2002 16:06:30 -0800 (PST)


This is a multi-part message in MIME format...

------------=_1010448390-17338-0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: binary

Hello, all.

I recently grabbed the latest mcs from CVS and started playing with it. 
Everything built smoothly once I figure out a thing or two about MS's .NET SDK,
except some of the stuff in System.Reflection didn't build cleanly because some
of the source files pull in both System.Runtime.CompilerServices and
System.Runtime.InteropServices, and then expect to use constants from
MethodImplOptions from CompilerServices without fully qualifying the where they
are coming from.  

So, I was getting build errors when building corlib.dll.

The attached patch fixes that problem.

Best,
-- 
Matt Kimball
matt@kimball.net



------------=_1010448390-17338-0
Content-Type: application/octet-stream; name="reflmethod.patch"
Content-Disposition: attachment; filename="reflmethod.patch"
Content-Transfer-Encoding: base64

SW5kZXg6IGNsYXNzL2NvcmxpYi9TeXN0ZW0uUmVmbGVjdGlvbi9Nb25vRmll
bGQuY3MKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PQpSQ1MgZmlsZTogL21vbm8v
bWNzL2NsYXNzL2NvcmxpYi9TeXN0ZW0uUmVmbGVjdGlvbi9Nb25vRmllbGQu
Y3MsdgpyZXRyaWV2aW5nIHJldmlzaW9uIDEuMQpkaWZmIC11IC1yMS4xIE1v
bm9GaWVsZC5jcwotLS0gY2xhc3MvY29ybGliL1N5c3RlbS5SZWZsZWN0aW9u
L01vbm9GaWVsZC5jcwkxMyBEZWMgMjAwMSAxNTo1NzoyMiAtMDAwMAkxLjEK
KysrIGNsYXNzL2NvcmxpYi9TeXN0ZW0uUmVmbGVjdGlvbi9Nb25vRmllbGQu
Y3MJNyBKYW4gMjAwMiAyMzo1NzoxNiAtMDAwMApAQCAtMjIsNyArMjIsNyBA
QAogCQlwdWJsaWMgU3RyaW5nIG5hbWU7CiAJCXB1YmxpYyBGaWVsZEF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