[Mono-devel-list] Creating types at runtime
Cinq - Eduardo Vellasques
e.vellasques at cinq.com.br
Wed Mar 10 06:39:38 EST 2004
It also interests me a lot, and I also would like to contribute to it.
What you mean August, is to implement the Mono version of the .NET
System.Runtime.InteropServices Namespace Classes. They make possible the use
of COM unmanaged classes for .NET managed application.
If it is not already implemented, I would like to contribute too.
--------- Mensagem Original --------
De: August Steinbacher <august.steinbacher at gmx.net>
Para: Mono Development List <mono-devel-list at lists.ximian.com>
Assunto: Re: [Mono-devel-list] Creating types at runtime
Data: 10/03/04 08:08
> Thanks Jon...
> to be more precise, the goal of my work is to dynamically (at runtime)
> integrate type information into the Mono runtime and thus allow Mono
> programs to use externally defined types as if they were available in the
> managed environment. The external types could come from C / C++
> applications, and they must have a well-formed type-description given as
> XSD-schema, which resides somewhere in a kind of metadata.
> At the moment, everything is quite fuzzy for me, so I'm happy about every
> kind of help. So, thank you for your answer, now i know where to start. I
> hope I'm getting more into Mono the next days and can contribute to the
> Mono-project in the future...
> best regards,
> > Below...
> > On Tue, 2004-03-09 at 08:31, August Steinbacher wrote:
> > > Hello all,
> > >
> > > I am starting to work on a mechanism that allows managed
programs to use
> > > unmanaged objects and vice versa.
> > Sounds like Platform Invoke, depending on how you define
> > objects." Unmanaged C++ objects? Or "object" meaning
> > Something else?
> > > My first task is to create a type object at runtime from a given
> > > description in the form of XSD.
> > Simple enough -- you want to write a compiler that translates the XSD
> > into a set of types. Look into System.Reflection.Emit. Looking at
> > source to "mcs" might be helpful as well.
> > > So my question is if anybody has concerned with this topic and
> > > give me a slight kickoff and head me in the right direction
(since I'm a
> > > bloody mono-newbie...) ?
> > My "slight kickoff" is above, though you haven't provided
> > information about what *exactly* you're trying to do.
> > One thing to keep in mind is that Mono is a statically-typed
> > environment. Which means that you can't have existing, pre-compiled
> > code directly reference a set of classes you'll be generating at
> > run-time, as the classes won't exist yet. :-)
> > A workaround would be to define a set of interfaces/base classes that
> > your generated code will implement/derive from, and that existing
> > can compile against. Regardless, your design will need to take this
> > into consideration.
> > - Jon
> > _______________________________________________
> > Mono-devel-list mailing list
> > Mono-devel-list at lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/mono-devel-list
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
Cinq Technologies - http://www.cinq.com.br
More information about the Mono-devel-list