🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.csharpbuilder.language.csharp
Article #222

metaclass : How to ?

#222
From: Francois PIETTE [ICS - MidWare]
Date: Thu, 20 Jul 2006 16:48
15 lines
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
Technical Details
Message-ID: <44bfb434$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.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

Show Full Headers
Complete Article Headers
X-Google-Thread: 1efe35,b8500c8b2ddbf479,start
X-Google-Attributes: gid1efe35,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Francois PIETTE [ICS - MidWare]" <francois.piette@overbyte.be>
Newsgroups: borland.public.csharpbuilder.language.csharp
Subject: metaclass : How to ?
Date: Thu, 20 Jul 2006 18:48:34 +0200
Lines: 17
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 81.243.164.102
Message-ID: <44bfb434$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1153414196 81.243.164.102 (20 Jul 2006 09:49:56 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.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