Click here to Skip to main content
15,919,749 members
Home / Discussions / C#
   

C#

 
AnswerRe: Have some buttons clicks automatically! Pin
mike montagne23-Feb-07 12:42
mike montagne23-Feb-07 12:42 
QuestionMAP DESIGN TIME HELP REQUESTS TO ONLINE HTML NAME ANCHORS? Pin
mike montagne21-Feb-07 19:40
mike montagne21-Feb-07 19:40 
Questionhow To add exe in system try using Pin
Ankush Komarwar21-Feb-07 18:28
Ankush Komarwar21-Feb-07 18:28 
AnswerRe: how To add exe in system try using Pin
Shajeel21-Feb-07 18:36
Shajeel21-Feb-07 18:36 
QuestionCopy method Pin
hiremath7121-Feb-07 18:26
hiremath7121-Feb-07 18:26 
AnswerRe: Copy method Pin
Christian Graus21-Feb-07 18:30
protectorChristian Graus21-Feb-07 18:30 
Questionconvert raw image to bmp or jpeg Pin
gskumar11121-Feb-07 18:21
gskumar11121-Feb-07 18:21 
AnswerRe: convert raw image to bmp or jpeg Pin
Christian Graus21-Feb-07 18:27
protectorChristian Graus21-Feb-07 18:27 
GeneralRe: convert raw image to bmp or jpeg Pin
gskumar11121-Feb-07 18:40
gskumar11121-Feb-07 18:40 
GeneralRe: convert raw image to bmp or jpeg Pin
Christian Graus21-Feb-07 18:55
protectorChristian Graus21-Feb-07 18:55 
GeneralRe: convert raw image to bmp or jpeg Pin
V.21-Feb-07 22:29
professionalV.21-Feb-07 22:29 
GeneralRe: convert raw image to bmp or jpeg Pin
Christian Graus22-Feb-07 8:54
protectorChristian Graus22-Feb-07 8:54 
Questioncalling a random number only once Pin
alostdruid21-Feb-07 17:13
alostdruid21-Feb-07 17:13 
AnswerRe: calling a random number only once Pin
Shajeel21-Feb-07 18:00
Shajeel21-Feb-07 18:00 
AnswerRe: calling a random number only once Pin
Christian Graus21-Feb-07 18:26
protectorChristian Graus21-Feb-07 18:26 
Questionremoting Pin
kalyan_241621-Feb-07 16:59
kalyan_241621-Feb-07 16:59 
QuestionHow can I know what ChildNode is selected from TreeView? [modified] Pin
Khoramdin21-Feb-07 16:14
Khoramdin21-Feb-07 16:14 
AnswerRe: How can I know what ChildNode is selected from TreeView? Pin
Shajeel21-Feb-07 18:28
Shajeel21-Feb-07 18:28 
QuestionC# Question with Generics [modified] Pin
malharone21-Feb-07 15:04
malharone21-Feb-07 15:04 
AnswerRe: C# Question with Generics Pin
Christian Graus21-Feb-07 15:12
protectorChristian Graus21-Feb-07 15:12 
GeneralRe: C# Question with Generics [modified] Pin
malharone21-Feb-07 15:16
malharone21-Feb-07 15:16 
GeneralRe: C# Question with Generics Pin
Christian Graus21-Feb-07 16:02
protectorChristian Graus21-Feb-07 16:02 
GeneralRe: C# Question with Generics Pin
mike montagne26-Feb-07 14:53
mike montagne26-Feb-07 14:53 
GeneralRe: C# Question with Generics Pin
malharone27-Feb-07 11:13
malharone27-Feb-07 11:13 
If I'm not mistaken, then you're suggesting something like:
public abstract class DomainObject<T>

This will break majority of the app where I'm simply keeping a reference to the base DomainObject as opposed to DomainObject for Car. You could help clarify my misunderstanding .. but:

Assuming I changed the class declaration as above (with generics), what should I change my dependent method signature for the classes that do NOT inherit from generics?

e.g.
01. class ListViewEx
02. {
03. 
04.   DomainObject _selectedObject;
05.
06.   public void AddItem (DomainObject obj)
07.   { ... }
08.
09.   public DomainObject SelectedObject
10.   { get { return _selectedObject; }
11.     set { ... } }
12.}


- What should the line #4, 6 & 9 look like after genericising DomainObject?
- And one thing to note is that currently, ListViewEx.AddItem is designed to allow consumer to pass both objects of type Car AND Boat. If I genericize the ListViewEx to class ListViewEx <T> then a. I'll lose the functionality of adding items of multiple types, and b. Win form designer will no longer work.

Thanks,

- Malhar
GeneralRe: C# Question with Generics Pin
mike montagne27-Feb-07 13:36
mike montagne27-Feb-07 13:36 

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.