Click here to Skip to main content
15,895,656 members
Home / Discussions / C#
   

C#

 
QuestionWork with Geotiff in C# Pin
Reza Shojaee31-May-11 22:04
Reza Shojaee31-May-11 22:04 
AnswerRe: Work with Geotiff in C# Pin
Pete O'Hanlon31-May-11 22:32
mvePete O'Hanlon31-May-11 22:32 
Questionabstarct class basic question [modified] Pin
PozzaVecia31-May-11 20:57
PozzaVecia31-May-11 20:57 
AnswerRe: abstarct class basic question Pin
RobCroll31-May-11 21:19
RobCroll31-May-11 21:19 
GeneralRe: abstarct class basic question Pin
PozzaVecia31-May-11 21:33
PozzaVecia31-May-11 21:33 
GeneralRe: abstarct class basic question Pin
BobJanova31-May-11 23:03
BobJanova31-May-11 23:03 
GeneralRe: abstarct class basic question Pin
PozzaVecia31-May-11 23:28
PozzaVecia31-May-11 23:28 
GeneralRe: abstarct class basic question Pin
BobJanova31-May-11 23:33
BobJanova31-May-11 23:33 
That's correct (unless you cast it). That's kind of an unavoidable consequence of putting any method on the base class. Typically in an abstract class hierarchy, the base class will define (either concrete or abstract) most of the public interface, so you can do most things through the base.

If you know that you are working with D1, after all, you can just create a new instance with new D1(). The dynamic Create method is only needed when you want a new instance of the same type as another object, and you don't know what type that is, so you wouldn't be able to call class-specific functionality on it anyway.
GeneralRe: abstarct class basic question Pin
PozzaVecia31-May-11 23:45
PozzaVecia31-May-11 23:45 
GeneralRe: abstarct class basic question Pin
Mirko19801-Jun-11 0:24
Mirko19801-Jun-11 0:24 
GeneralRe: abstarct class basic question Pin
BobJanova1-Jun-11 1:37
BobJanova1-Jun-11 1:37 
GeneralRe: abstarct class basic question Pin
Mirko19801-Jun-11 3:24
Mirko19801-Jun-11 3:24 
GeneralRe: abstarct class basic question Pin
BobJanova1-Jun-11 1:34
BobJanova1-Jun-11 1:34 
AnswerRe: abstarct class basic question Pin
Luc Pattyn1-Jun-11 0:46
sitebuilderLuc Pattyn1-Jun-11 0:46 
GeneralRe: abstarct class basic question Pin
PIEBALDconsult1-Jun-11 2:57
mvePIEBALDconsult1-Jun-11 2:57 
AnswerRe: abstarct class basic question [modified] Pin
Steven.Pinto20001-Jun-11 0:28
Steven.Pinto20001-Jun-11 0:28 
GeneralRe: abstarct class basic question [modified] Pin
PozzaVecia1-Jun-11 1:03
PozzaVecia1-Jun-11 1:03 
GeneralRe: abstarct class basic question Pin
Steven.Pinto20001-Jun-11 3:52
Steven.Pinto20001-Jun-11 3:52 
GeneralRe: abstarct class basic question Pin
PozzaVecia1-Jun-11 4:03
PozzaVecia1-Jun-11 4:03 
AnswerRe: abstarct class basic question Pin
BobJanova1-Jun-11 1:40
BobJanova1-Jun-11 1:40 
GeneralRe: abstarct class basic question Pin
PozzaVecia1-Jun-11 1:52
PozzaVecia1-Jun-11 1:52 
GeneralRe: abstarct class basic question Pin
BobJanova1-Jun-11 1:53
BobJanova1-Jun-11 1:53 
GeneralRe: abstarct class basic question Pin
PozzaVecia1-Jun-11 2:09
PozzaVecia1-Jun-11 2:09 
AnswerRe: abstarct class basic question Pin
_Erik_1-Jun-11 4:10
_Erik_1-Jun-11 4:10 
GeneralRe: abstarct class basic question Pin
PozzaVecia1-Jun-11 5:24
PozzaVecia1-Jun-11 5:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.