Click here to Skip to main content
15,893,663 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: msn style - show/hide form border Pin
g00fyman2-May-06 2:23
g00fyman2-May-06 2:23 
QuestionHow to bind 2 exe files in one file and Extraxt those again ? Pin
hdv2122-May-06 1:17
hdv2122-May-06 1:17 
AnswerRe: How to bind 2 exe files in one file and Extraxt those again ? Pin
Graham Nimbley2-May-06 2:31
Graham Nimbley2-May-06 2:31 
QuestionPage {PAGE} of {NUMPAGES} in Word Pin
jhaga2-May-06 0:44
professionaljhaga2-May-06 0:44 
AnswerRe: Page {PAGE} of {NUMPAGES} in Word Pin
alexey N2-May-06 0:51
alexey N2-May-06 0:51 
GeneralRe: Page {PAGE} of {NUMPAGES} in Word Pin
jhaga2-May-06 1:20
professionaljhaga2-May-06 1:20 
Questioncreate DTS dynamically using C# (urgent) Pin
AmitSumit2-May-06 0:17
AmitSumit2-May-06 0:17 
AnswerRe: create DTS dynamically using C# (urgent) Pin
J4amieC2-May-06 0:59
J4amieC2-May-06 0:59 
GeneralRe: create DTS dynamically using C# (urgent) Pin
AmitSumit2-May-06 2:00
AmitSumit2-May-06 2:00 
QuestionConsole program Pin
DH Julio2-May-06 0:01
DH Julio2-May-06 0:01 
AnswerRe: Console program Pin
stancrm2-May-06 0:28
stancrm2-May-06 0:28 

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.