Re: Class casting.
- From: "Ignacio Machin \( .NET/ C# MVP \)" <ignacio.machin AT dot.state.fl.us>
- Date: Wed, 29 Mar 2006 17:09:54 -0500
Hi,
Thanks.
I did similar thing.
I created a base class and all pages inherit from this base class.
The reason was, that I had different methods in classes.
You mean methods with different signature?
Cause if they have the same signature, well that the idea of using an
interface in the first place !
Inteface forces me to implement all of them in each class.
Or you could implement several interfaces, but what I do not understand is
how you call the different methods if they have different signatures.
Virtual methods in base class allow me to implement only needed method,
What about different interfaces?
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
.
- Follow-Ups:
- Re: Class casting.
- From: Kris
- Re: Class casting.
- References:
- Class casting.
- From: Kris
- Re: Class casting.
- From: Ignacio Machin \( .NET/ C# MVP \)
- Re: Class casting.
- From: Kris
- Re: Class casting.
- From: Ignacio Machin \( .NET/ C# MVP \)
- Re: Class casting.
- From: Kris
- Class casting.
- Prev by Date: Re: Fast Rename from client to server
- Next by Date: Re: What is a "Predicate delegate"
- Previous by thread: Re: Class casting.
- Next by thread: Re: Class casting.
- Index(es):
Relevant Pages
|