borland.public.csharpbuilder.language.csharp
  Home FAQ Contact Sign in
borland.public.csharpbuilder.language.csharp only
 
Advanced search
March 2008
motuwethfrsasuw
     12 9
3456789 10
10111213141516 11
17181920212223 12
24252627282930 13
31       14
2008
 Jan   Feb   Mar   Apr 
 May   Jun   Jul   Aug 
 Sep   Oct   Nov   Dec 
2008 2007 2006  
total
borland.public ... language.csharp Profile…
RELATED GROUPS

POPULAR GROUPS

more...

 Up
  My Hot Friends Mum Hidden Web Cam getting undressed FUCKING SEXY         


Author: yenc
Date: Mar 1, 2008 10:45

PORNOLATION RELEASE
no comments
  New Apple ipod nano         


Author: Jake
Date: Oct 6, 2007 18:11

no comments
  Paintball market         


Author: The Pb Center
Date: Oct 6, 2007 18:07

no comments
  How i built muscle quickly         


Author: Wesley Rodgers
Date: Oct 6, 2007 16:45

no comments
  Sending Faxes over the internet         


Author: Henry Sharp
Date: Oct 6, 2007 13:53

no comments
  Watch Free Satellite TV On Your PC         


Author: sat-pctv.com
Date: Sep 14, 2007 03:55

Watch Satellite TV On Your PC

Watch TV Shows, Movies, Sports & More!
Over 2500 TV Stations On Your PC.

http://pctv.mzs-inc.com
no comments
  converting delphi code to c#         


Author: Bob99
Date: Aug 2, 2007 07:12

Hi,
I've got some Delphi code that I need to convert c#, the code is used in a
timer to delete an entry from a TListView in Delphi.
The Delphi code is below:
Show full article (1.40Kb)
5 Comments
  Re: More about "class of" in C#         


Author: Joanna Carter [TeamB]
Date: Jun 19, 2007 13:40

Borland a écrit :
> I'm a beginner when it comes to C#, and am struggling a bit. I am perhaps
> biased - but Delphi does have a certain elegance when it comes to this sort
> of stuff that is still hard to beat.

The great thing about this group is that you don't just get the C#, you
get the Delphi experience as to how to do the conversion :-)

Joanna

--
Joanna Carter [TeamB]
Consultant Software Engineer
no comments
  Re: More about "class of" in C#         


Author: Joanna Carter [TeamB]
Date: Jun 19, 2007 13:38

David Fallas a écrit :
> Right - got it now!

Yaayy!!!

Joanna

--
Joanna Carter [TeamB]
Consultant Software Engineer
no comments
  Re: More about "class of" in C#         


Author: Joanna Carter [TeamB]
Date: Jun 19, 2007 03:57

Borland a écrit :
> Referring to that posting from December last year re "class of"... I
> understand the use of Activator.CreateInstance(ClassType) as a replacement
> for the Delphi "class of" for use in a C# abstract class factory, but how
> would I use that ClassType reference to call a static method (eg public
> static DoIt()) which has been declared in the Class class?
>
> In Delphi I would simply retrieve the "class of" reference, (eg ClassClass -
> class of TClass), and call the function normally - eg
> TClass(ClassClass).DoIt;

First, can I ask you to change your posting name from Borland ?

Now, to the matter in hand.

Don't forget that, in C#, static methods cannot be virtual. Therefore,
you have to redlclare the method in each and every derived class but
simply calling the static method on the base type will only call that
method, not the derived one.

However, here is a simple example fo how to create a factory class that
will call the correct method, depending on the type passed in.
Show full article (3.25Kb)
4 Comments
1 2 3