Click here to Skip to main content
15,915,509 members
Home / Discussions / C#
   

C#

 
GeneralRe: windows based application querry ! Pin
meer_Lx2-May-06 19:13
meer_Lx2-May-06 19:13 
Questionoptimize drawing operations Pin
Sasuko2-May-06 3:19
Sasuko2-May-06 3:19 
AnswerRe: optimize drawing operations Pin
J4amieC2-May-06 3:35
J4amieC2-May-06 3:35 
GeneralRe: optimize drawing operations Pin
Sasuko2-May-06 7:25
Sasuko2-May-06 7:25 
GeneralRe: optimize drawing operations Pin
J4amieC2-May-06 7:44
J4amieC2-May-06 7:44 
GeneralRe: optimize drawing operations Pin
Susuko2-May-06 9:25
Susuko2-May-06 9:25 
QuestionWindow Form - menu,height/width? Pin
george ivanov2-May-06 3:18
george ivanov2-May-06 3:18 
AnswerRe: Window Form - menu,height/width? Pin
J4amieC2-May-06 3:32
J4amieC2-May-06 3:32 
AnswerRe: Window Form - menu,height/width? Pin
Larantz2-May-06 4:54
Larantz2-May-06 4:54 
QuestionIs the VS 2005 Webbrowser really ready for prime time? Pin
cweeks786812-May-06 3:09
cweeks786812-May-06 3:09 
AnswerRe: Is the VS 2005 Webbrowser really ready for prime time? Pin
Judah Gabriel Himango2-May-06 5:49
sponsorJudah Gabriel Himango2-May-06 5:49 
Questionhow+which controll should i use to create table+ text in one view Pin
junaidbilal2-May-06 2:32
junaidbilal2-May-06 2:32 
AnswerRe: how+which controll should i use to create table+ text in one view Pin
Graham Nimbley2-May-06 2:39
Graham Nimbley2-May-06 2:39 
GeneralRe: how+which controll should i use to create table+ text in one view Pin
junaidbilal2-May-06 3:48
junaidbilal2-May-06 3:48 
GeneralRe: how+which controll should i use to create table+ text in one view Pin
Graham Nimbley2-May-06 5:52
Graham Nimbley2-May-06 5:52 
GeneralRe: how+which controll should i use to create table+ text in one view Pin
junaidbilal2-May-06 20:39
junaidbilal2-May-06 20:39 
QuestionRemoving Context Menu Items Pin
MCSD-Gandalf2-May-06 1:47
MCSD-Gandalf2-May-06 1:47 
AnswerRe: Removing Context Menu Items Pin
MCSD-Gandalf2-May-06 4:29
MCSD-Gandalf2-May-06 4:29 
Questiondependant #warning Pin
Rafael Fernández López2-May-06 1:36
Rafael Fernández López2-May-06 1:36 
Hi,

I've got a generic class (Binary Tree)

public class ABB<T> : ICloneable where T : IComparable/*, ICloneable*/ {
.
.
.
}

I adapted it so items that are not ICloneable can be introduced into the tree, but if they are not ICloneable and they are not like (int, float...), because is another class that is not ICloneable, I'd like to print a:

#warning If the object is modified after introducing it into the tree, the object that the tree has saved will be changed too (if T is not a primitive type). If you wan't to solve this, make the class T implement ICloneable methods, and a copy of the original object will be saved into the tree, instead of copying its memory address (as is happening right now).

But this warning only MUST BE SHOWED if the class T that has been instantiated like:

ABB<ClassWhichIsNotICloneable> object = new ABB<ClassWhichIsNotICloneable>();

Well, it would be showed with old types too (int, float...) but there's no problem since it is a copy of the original type what is introduced onto the tree (as the warning says). As this:

ABB<int> object = new ABB<int>();

Well, int is not ICloneable, but there's no problem with it.

THANK YOU.
AnswerRe: dependant #warning Pin
Josh Smith2-May-06 1:53
Josh Smith2-May-06 1:53 
GeneralRe: dependant #warning Pin
Rafael Fernández López2-May-06 2:02
Rafael Fernández López2-May-06 2:02 
GeneralRe: dependant #warning Pin
Josh Smith2-May-06 3:59
Josh Smith2-May-06 3:59 
GeneralRe: dependant #warning Pin
Rafael Fernández López2-May-06 7:30
Rafael Fernández López2-May-06 7:30 
Questionmsn style - show/hide form border Pin
g00fyman2-May-06 1:29
g00fyman2-May-06 1:29 
AnswerRe: msn style - show/hide form border Pin
stancrm2-May-06 2:13
stancrm2-May-06 2:13 

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.