🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Class reference

#410
From: Craig Stuntz TeamB
Date: Mon, 03 Oct 2005 14:00
18 lines
1656 bytes
Marcelo Silva wrote:

> Does anyone know how can I do something similar to the following in
> C#:
> 
> TMyClassClass = class of TMyClass;
> TMyClass = class(TObject)
> 
> any help will be appreciated

	You can't. C# doesn't have metaclasses. What do you actually need to
do? There are usually alternate patterns to get the same things done.

-- 
Craig Stuntz [TeamB] � Vertex Systems Corp. � Columbus, OH
  Delphi/InterBase Weblog : http://blogs.teamb.com/craigstuntz
Please read and follow Borland's rules for the user of their 
  server: http://support.borland.com/entry.jspa?externalID=293
Technical Details
Message-ID: <43413970$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!newshub.sdsu.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <434125f6@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 1efe35,b5eaefadd83b78e6
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: Class reference
Newsgroups: borland.public.csharpbuilder.language.csharp
References: <434125f6@newsgroups.borland.com>
Organization: Vertex Systems Corporation
User-Agent: XanaNews/1.17.6.4
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.204
Message-ID: <43413970$1@newsgroups.borland.com>
Date: 3 Oct 2005 07:00:16 -0700
X-Trace: newsgroups.borland.com 1128348016 24.106.104.204 (3 Oct 2005 07:00:16 -0700)
Lines: 18
X-Authenticated-User: cstuntz
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!newshub.sdsu.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail