Thread View: borland.public.csharpbuilder.language.csharp
6 messages
6 total messages
Started by Francois PIETTE [ICS - MidWare]
Thu, 20 Jul 2006 16:48
metaclass : How to ?
Author: Francois PIETTE [ICS - MidWare]
Date: Thu, 20 Jul 2006 16:48
Date: Thu, 20 Jul 2006 16:48
15 lines
1435 bytes
1435 bytes
I'm new to C#. I'm porting a program from Delphi where a metaclass is used. I can find in the docs how to declare a metaclass with C#. Description on what I need: In a class, I need a member variable to hold the name of a class which will be instanciated at runtime. In Delphi, I use the "class of" construct. Any help appreciated. -- francois.piette@overbyte.be The author for the freeware multi-tier middleware MidWare The author of the freeware Internet Component Suite (ICS) http://www.overbyte.be
Re: metaclass : How to ?
Author: Craig Stuntz TeamB
Date: Thu, 20 Jul 2006 16:55
Date: Thu, 20 Jul 2006 16:55
19 lines
1797 bytes
1797 bytes
Francois PIETTE [ICS - MidWare] wrote: > I'm new to C#. I'm porting a program from Delphi where a metaclass is > used. I can find in the docs how to declare a metaclass with C#. That's because there isn't one. > Description on what I need: > In a class, I need a member variable to hold the name of a class > which will be instanciated at runtime. In Delphi, I use the "class > of" construct. You can do this with Activator in any .NET language. -- Craig Stuntz [TeamB] � Vertex Systems Corp. � Columbus, OH Delphi/InterBase Weblog : http://blogs.teamb.com/craigstuntz Useful articles about InterBase development: http://blogs.teamb.com/craigstuntz/category/21.aspx
Re: metaclass : How to ?
Author: Joanna Carter [TeamB]
Date: Thu, 20 Jul 2006 18:31
Date: Thu, 20 Jul 2006 18:31
22 lines
1555 bytes
1555 bytes
"Francois PIETTE [ICS - MidWare]" <francois.piette@overbyte.be> a �crit dans le message de news: 44bfb434$1@newsgroups.borland.com... | I'm new to C#. I'm porting a program from Delphi where a metaclass is used. | I can find in the docs how to declare a metaclass with C#. | | Description on what I need: | In a class, I need a member variable to hold the name of a class which will | be instanciated at runtime. | In Delphi, I use the "class of" construct. J'ai t'envoy� un e-mail avec deux articles sur le sujet :-) Salutations Joanna -- Joanna Carter [TeamB] Ing�nieur conseil en logiciel
Re: metaclass : How to ?
Author: Francois PIETTE [ICS - MidWare]
Date: Thu, 20 Jul 2006 19:28
Date: Thu, 20 Jul 2006 19:28
21 lines
1789 bytes
1789 bytes
> | I'm new to C#. I'm porting a program from Delphi where a metaclass is > used. > | I can find in the docs how to declare a metaclass with C#. > | > | Description on what I need: > | In a class, I need a member variable to hold the name of a class which > will > | be instanciated at runtime. > | In Delphi, I use the "class of" construct. > > J'ai t'envoy� un e-mail avec deux articles sur le sujet :-) Thank you very much Joanna. Reading your article, it looks like Delphi is much better than C# when dealing with metaclasses. Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html -- francois.piette@overbyte.be The author for the freeware multi-tier middleware MidWare The author of the freeware Internet Component Suite (ICS) http://www.overbyte.be
Re: metaclass : How to ?
Author: Pierre Y.
Date: Tue, 25 Jul 2006 13:23
Date: Tue, 25 Jul 2006 13:23
29 lines
1957 bytes
1957 bytes
Joanna Carter [TeamB] a �crit : > "Francois PIETTE [ICS - MidWare]" <francois.piette@overbyte.be> a �crit dans > le message de news: 44bfb434$1@newsgroups.borland.com... > >> I'm new to C#. I'm porting a program from Delphi where a metaclass is used. >> I can find in the docs how to declare a metaclass with C#. >> >> Description on what I need: >> In a class, I need a member variable to hold the name of a class which will >> be instanciated at runtime. >> In Delphi, I use the "class of" construct. > > J'ai t'envoy� un e-mail avec deux articles sur le sujet :-) Ca m'int�resse aussi, je peux les avoir ? Merci ;-) Pierre -- Pierre Y. levosgien.net - http://cerbermail.com/?7dwZGWwOB0 (Cliquez sur le lien ci-dessus pour me contacter en priv�) Capitaine anglais : "Vous vous battez pour l'argent, nous on se bat pour l'honneur !" Robert Surcouf : "Vous avez raison, Monsieur, chacun de nous combat pour ce qui lui manque."
Re: metaclass : How to ?
Author: Joanna Carter [TeamB]
Date: Tue, 25 Jul 2006 15:50
Date: Tue, 25 Jul 2006 15:50
12 lines
1282 bytes
1282 bytes
"Pierre Y." <pierre@[levosgien].net> a �crit dans le message de news: mn.cb9b7d67a0ffce7c.6728@levosgien.net... | Ca m'int�resse aussi, je peux les avoir ? Regardes ta bo�te de r�ception :-) Joanna -- Joanna Carter [TeamB] Consultant Software Engineer
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads