[Mono-list] Reflection and .NET Metadata

2012-04-13 Thread Allen Copeland
I wrote in three weeks ago asking about how mono loaded assemblies in Linux or other Operating Systems. I have a question for you all about validating a .NET metadata parser. The ECMA-335 specification outlines every aspect of the spec; however, even with a spec it's possible to get it wrong.

Re: [Mono-list] Reflection and .NET Metadata

2012-04-13 Thread Rodrigo Kumpera
Take a look at mono's IL and metadata verifiers at mono/metadata/verify.c and mono/metadata/metadata-verify.c On Fri, Apr 13, 2012 at 3:05 AM, Allen Copeland alexander.mo...@alexandermorou.com wrote: I wrote in three weeks ago asking about how mono loaded assemblies in Linux or other

Re: [Mono-list] Reflection tool

2006-12-29 Thread Maciej Piechotka
On Thu, 28 Dec 2006 21:32:19 -0500, Jonathan Pryor wrote: On Thu, 2006-12-28 at 23:55 +0100, Maciej Piechotka wrote: Is it any tool under mono which would allow me to browse assemblies? monop and monop2 will permit this. It'd be perfect with gui. Type Reflector can do this. See:

[Mono-list] Reflection tool

2006-12-28 Thread Maciej Piechotka
Is it any tool under mono which would allow me to browse assemblies? It'd be perfect with gui. Regards -- I've probably left my head... somewhere. Please wait untill I find it. Homepage (pl_PL): http://uzytkownik.jogger.pl/ (GNU/)Linux User: #425935 (see http://counter.li.org/)

Re: [Mono-list] Reflection tool

2006-12-28 Thread Jonathan Pryor
On Thu, 2006-12-28 at 23:55 +0100, Maciej Piechotka wrote: Is it any tool under mono which would allow me to browse assemblies? monop and monop2 will permit this. It'd be perfect with gui. Type Reflector can do this. See: http://mono.myrealbox.com/source/trunk/type-reflector - Jon

Re: [Mono-list] Reflection of non-public fields

2006-06-29 Thread Trimble, Nathan G
I get no output in VS 2003 and the same warnings, looks consistent. Nate Trimble -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Thursday, June 29, 2006 2:57 PM To: mono-list@lists.ximian.com Subject: [Mono-list] Reflection of non

[Mono-list] Reflection odd exception

2005-10-19 Thread Carlos Ble
Hi! Iam working with reflection by loading some clases dinamically. This is a piece of pseudo code: System.Object[] paramsObj = new System.Object[] {...params...}; Assembly assembly = Assembly.GetExecutingAssembly(); System.Object childWin =

Re: [Mono-list] Reflection odd exception

2005-10-19 Thread Elliott Draper
I'd hazard a guess and say it's because you don't have a reference to the relevant Gdk assemblies, or they can't be found in the path, gac etc. As such when it's creating this object, it's coming unstuck because that class is using a type that it can't find, hence when you change it to using

Re: [Mono-list] Reflection odd exception

2005-10-19 Thread Carlos Ble
Thanks Elliott. Following the InnerException I have noticed that the exception is normal, the problem is simple. When trying to Autoconnect (because im using glade) it searchs for OnWinDeleteEvent(object o, EventArgs e) and doesnt find it. So the problem is not in reflection neither assemblies,

Re: [Mono-list] Reflection...

2004-02-20 Thread Marcus
I think that this is an mcs bug. I think I narrowed it down to mcs's mark handling the custom attribute correctly. I filed a bug report for you. http://bugs.ximian.com/show_bug.cgi?id=54679 On Friday 20 February 2004 2:06 pm, Giuseppe Greco wrote: Hi all, since const fields are implicitly

Re: [Mono-list] Reflection...

2004-02-20 Thread Giuseppe Greco
Ok Markus, Thanks, j3d. On Sat, 2004-02-21 at 00:59, Marcus wrote: I think that this is an mcs bug. I think I narrowed it down to mcs's mark handling the custom attribute correctly. I filed a bug report for you. http://bugs.ximian.com/show_bug.cgi?id=54679 On Friday 20 February 2004

[Mono-list] Reflection problem in 0.29

2003-12-05 Thread Kris Luyten
Hi, since I installed mono 0.29 I have some problems with reflection and Console output. More precise the following sample code throws a weird TargetInvocationException: = Assembly a = Assembly.Load(corlib.dll); Type t = a.GetType(System.Console, true, true); String method =

RE: [Mono-list] Reflection problem in 0.29

2003-12-05 Thread Rob . Tillie
: [Mono-list] Reflection problem in 0.29 Hi, since I installed mono 0.29 I have some problems with reflection and Console output. More precise the following sample code throws a weird TargetInvocationException: Assembly a = Assembly.Load(corlib.dll); Type t = a.GetType

RE: [Mono-list] Reflection problem in 0.29

2003-12-05 Thread Kris Luyten
On Fri, 2003-12-05 at 22:50, [EMAIL PROTECTED] wrote: Hello Kris, I believe corlib.dll is now renamed to mscorlib.dll, so try: Assembly a = Assembly.Load(mscorlib.dll); That solved my problem, thanks Kris -- Kris Luyten email: [EMAIL PROTECTED]

RE: [Mono-list] Reflection problem in 0.29

2003-12-05 Thread Jackson Harper
Type con = typeof (System.Console); is a little cleaner ;-). Jackson On Fri, 2003-12-05 at 13:47, Kris Luyten wrote: On Fri, 2003-12-05 at 22:50, [EMAIL PROTECTED] wrote: Hello Kris, I believe corlib.dll is now renamed to mscorlib.dll, so try: Assembly a =

Re: [Mono-list] Reflection

2003-08-04 Thread Paolo Molaro
On 08/02/03 Thong (Tum) Nguyen wrote: Try System.Runtime.InteropServices.Marshal.SizeOf(Type). [...] From: [EMAIL PROTECTED] [mailto:mono-list- [EMAIL PROTECTED] On Behalf Of Giuseppe Greco [...] sorry for my stupid question... but does anybody know how can I get the size of a type

[Mono-list] Reflection

2003-08-01 Thread Giuseppe Greco
Hi all, sorry for my stupid question... but does anybody know how can I get the size of a type without using sizeof()? For example, sizeof(Int32) returns 4; how can I obtain the same result using the Type class? Thanks, Gius_. -- Giuseppe Greco

RE: [Mono-list] Reflection

2003-08-01 Thread Thong (Tum) Nguyen
Try System.Runtime.InteropServices.Marshal.SizeOf(Type). ^Tum -Original Message- From: [EMAIL PROTECTED] [mailto:mono-list- [EMAIL PROTECTED] On Behalf Of Giuseppe Greco Sent: Saturday, 2 August 2003 3:52 a.m. To: Mono Subject: [Mono-list] Reflection Hi all, sorry for my

Re: [Mono-list] Reflection Problem

2003-03-20 Thread Carlos Alberto Cortez
Hello! Oh ok, thanks. It happens that I was learning reflection from a the C# language from O'Reilly ... so, could you please recomend me a good book? I have the thinking in c# too, but the reflection topic comes all in java ... Regards, Carlos. El jue, 20-03-2003 a las 04:21, Paolo Molaro

RE: [Mono-list] Reflection Problem

2003-03-20 Thread Piers Haken
. -Original Message- From: Carlos Alberto Cortez [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2003 6:42 AM To: Mono List Subject: Re: [Mono-list] Reflection Problem Hello! Oh ok, thanks. It happens that I was learning reflection from a the C# language from O'Reilly

Re: [Mono-list] Reflection problem

2003-03-14 Thread Jackson Harper
System.Math does not have a default contructor, you can't create an instance of it, all of its methods and fields are static. Try System.Object instead. Jackson Carlos Alberto Cortez wrote: Hello there: Yesterday I began to have fun with reflection. But I had a problem, when I wrote this

[Mono-list] Reflection error

2003-03-04 Thread Erik LeBel
While using reflection I've found that ParameterInfo's IsIn, IsOut and IsRetval always return false. I have not found any logged bugs at Ximian's bugzilla. Is this a know problem? If this is not a problem, then I'll assume that something in my code is not correct, but it seems odd to have all the