πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Reflection

#179
From: Joanna Carter [TeamB]
Date: Sun, 15 Oct 2006 22:28
35 lines
1970 bytes
"Net" <netmaster0000@gmail.com> a οΏ½crit dans le message de news: 
4532b184$1@newsgroups.borland.com...

| Hi, I'm in the process of learning c#, but i'm getting the hang of it 
pretty
| fast.  The problem is documentation.  I've read up on C# reflection, and 
i'm
| already using it, but there are certain things which aren't stated.  For
| instance, my issue is that of class references.  How do you do such in C#.
| Like for instance, delphi:
|
| {* class reference declaration *}
| TDBObjectClass = class of TDBObject;
|
| {*
|    Method returns the remotable object for a given
|   class type...the method here is a class funciton
| *}
| TDBObject.GetRemotableClass(aClass: TDBObjectClass):TRemotable;
| begin
|   .....
| end;
|
|
| My issue is how do i declare TDBObjectClass in C#?

Unless you write your own metaclasses, C# does not support class references 
per se. So the answer is, you can't declare class references without writing 
metaclasses yourself.

Joanna

-- 
Joanna Carter [TeamB]
Consultant Software Engineer 
Technical Details
Message-ID: <4532b60b$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-mail
References: <4532b184$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 1efe35,cb9a38f60b6bc1f7
X-Google-Attributes: gid1efe35,public
X-Google-Language: ENGLISH,ASCII
From: "Joanna Carter [TeamB]" <joanna@not.for.spam>
Newsgroups: borland.public.csharpbuilder.language.csharp
References: <4532b184$1@newsgroups.borland.com>
Subject: Re: Reflection
Date: Sun, 15 Oct 2006 23:28:15 +0100
Lines: 37
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
NNTP-Posting-Host: 82.69.239.102
Message-ID: <4532b60b$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1160951307 82.69.239.102 (15 Oct 2006 15:28:27 -0700)
X-Authenticated-User: jcarter
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