Article View: borland.public.csharpbuilder.language.csharp
Article #223Re: metaclass : How to ?
From: 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
Technical Details
Message-ID:
<44bfb575$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<44bfb434$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 1efe35,b8500c8b2ddbf479 X-Google-Attributes: gid1efe35,public X-Google-Language: ENGLISH,ASCII From: "Craig Stuntz [TeamB]" <craig_stuntz@nospam.please [a.k.a. acm.org]> Subject: Re: metaclass : How to ? Newsgroups: borland.public.csharpbuilder.language.csharp References: <44bfb434$1@newsgroups.borland.com> Organization: Vertex Systems Corporation User-Agent: XanaNews/1.18.1.3 X-Face: "huzh55Xi]!ZNni78>a*5+).`SK?<^q2MlHk-C]Z2M9T@\J5ZCB$95Ey+s"XQuhGFA[eutZ:0^AV!Q;t>gE`1-=8d;HZ6~*o1dH<X9\b$!|(}+I'!Xq)@3Op}%0ArW&nf'Qh*EwR MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit NNTP-Posting-Host: 24.106.104.206 Message-ID: <44bfb575$1@newsgroups.borland.com> Date: 20 Jul 2006 09:55:17 -0700 X-Trace: newsgroups.borland.com 1153414517 24.106.104.206 (20 Jul 2006 09:55:17 -0700) Lines: 19 X-Authenticated-User: cstuntz Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail