Click here to Skip to main content
16,004,924 members
Home / Discussions / C#
   

C#

 
QuestionHow to insert code snippet Pin
Imtiaz Murtaza28-Jun-08 12:27
Imtiaz Murtaza28-Jun-08 12:27 
AnswerRe: How to insert code snippet Pin
N a v a n e e t h28-Jun-08 17:00
N a v a n e e t h28-Jun-08 17:00 
GeneralRe: How to insert code snippet Pin
Alan N29-Jun-08 2:37
Alan N29-Jun-08 2:37 
GeneralRe: How to insert code snippet Pin
N a v a n e e t h29-Jun-08 7:31
N a v a n e e t h29-Jun-08 7:31 
QuestionWhat about the other use of generic base class und generic polymorphism ? Pin
MarkPhB28-Jun-08 11:30
MarkPhB28-Jun-08 11:30 
AnswerRe: What about the other use of generic base class und generic polymorphism ? Pin
Christian Graus28-Jun-08 12:39
protectorChristian Graus28-Jun-08 12:39 
AnswerRe: What about the other use of generic base class und generic polymorphism ? [modified] Pin
Mark Churchill28-Jun-08 17:15
Mark Churchill28-Jun-08 17:15 
GeneralRe: What about the other use of generic base class und generic polymorphism ? Pin
MarkPhB29-Jun-08 1:12
MarkPhB29-Jun-08 1:12 
Mark Churchill wrote:
No, its not possible.


that's right, its not possible, but it should be, in my opinion. Smile | :)

Mark Churchill wrote:
Range< int > and Range< float > are two completely seperate types.


that's right as well, that's why IMO there should be a posibility to use generic classes as basis.
List<> list = new List<>(); // T should be assumed as Object or as the type limited through the where contrain
By the way i forgot to declare the Range<T> class as abstract. Its just a base class and must
be inherited because we can not implement some methods, for example IsBetween(T value);
Range<> range = Range<>();
range.Start // <- from type object
range.End// <- from type object

range = new IntRange();
range.Start // <- from type int
range.End// <- from type int

range = new DoubleRange();
range.Start // <- from type double
range.End// <- from type double

Mark Churchill wrote:
class Range< t > : BaseRange.


What would that bring? Sniff | :^)
The property Start and End would be ever from the type Object and can't take another type, except we override them with new.
GeneralRe: What about the other use of generic base class und generic polymorphism ? Pin
Mark Churchill29-Jun-08 2:44
Mark Churchill29-Jun-08 2:44 
GeneralRe: What about the other use of generic base class und generic polymorphism ? Pin
MarkPhB29-Jun-08 4:50
MarkPhB29-Jun-08 4:50 
GeneralRe: What about the other use of generic base class und generic polymorphism ? Pin
Mark Churchill29-Jun-08 12:54
Mark Churchill29-Jun-08 12:54 
GeneralRe: What about the other use of generic base class und generic polymorphism ? Pin
MarkPhB1-Jul-08 1:40
MarkPhB1-Jul-08 1:40 
Questionc# double pointer Pin
wwwxyz28-Jun-08 11:24
wwwxyz28-Jun-08 11:24 
AnswerRe: c# double pointer Pin
Luc Pattyn28-Jun-08 12:12
sitebuilderLuc Pattyn28-Jun-08 12:12 
GeneralRe: c# double pointer Pin
wwwxyz28-Jun-08 18:40
wwwxyz28-Jun-08 18:40 
AnswerRe: c# double pointer Pin
Guffa28-Jun-08 23:41
Guffa28-Jun-08 23:41 
GeneralRe: c# double pointer Pin
Luc Pattyn29-Jun-08 2:20
sitebuilderLuc Pattyn29-Jun-08 2:20 
Questionproblem to Refresh Control after it's value changed. Pin
hdv21228-Jun-08 11:16
hdv21228-Jun-08 11:16 
AnswerRe: problem to Refresh Control after it's value changed. Pin
Luc Pattyn28-Jun-08 12:15
sitebuilderLuc Pattyn28-Jun-08 12:15 
GeneralRe: problem to Refresh Control after it's value changed. Pin
hdv21228-Jun-08 23:08
hdv21228-Jun-08 23:08 
GeneralRe: problem to Refresh Control after it's value changed. Pin
Luc Pattyn29-Jun-08 2:13
sitebuilderLuc Pattyn29-Jun-08 2:13 
GeneralRe: problem to Refresh Control after it's value changed. Pin
hdv21229-Jun-08 4:50
hdv21229-Jun-08 4:50 
QuestionProblem with WebBrowser.DocumentText Pin
That Asian Guy28-Jun-08 10:43
That Asian Guy28-Jun-08 10:43 
GeneralRe: Problem with WebBrowser.DocumentText Pin
That Asian Guy28-Jun-08 12:51
That Asian Guy28-Jun-08 12:51 
QuestionSaveing tabs and content when closing app Pin
SilverAdder28-Jun-08 9:59
SilverAdder28-Jun-08 9:59 

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.