Click here to Skip to main content
15,890,717 members
Home / Discussions / C#
   

C#

 
GeneralRe: Threads Pin
BadKarma1-Mar-06 20:27
BadKarma1-Mar-06 20:27 
Questionconvert c++ to C# Pin
eyalso1-Mar-06 10:44
eyalso1-Mar-06 10:44 
AnswerRe: convert c++ to C# Pin
James Gupta1-Mar-06 11:59
professionalJames Gupta1-Mar-06 11:59 
GeneralRe: convert c++ to C# Pin
soma4201-Mar-06 12:15
soma4201-Mar-06 12:15 
GeneralRe: convert c++ to C# Pin
George L. Jackson1-Mar-06 12:50
George L. Jackson1-Mar-06 12:50 
Questionreference and not copy Pin
spin vector1-Mar-06 10:14
spin vector1-Mar-06 10:14 
AnswerRe: reference and not copy Pin
Judah Gabriel Himango1-Mar-06 10:42
sponsorJudah Gabriel Himango1-Mar-06 10:42 
AnswerRe: reference and not copy Pin
Guffa1-Mar-06 10:56
Guffa1-Mar-06 10:56 
No, you can't reference a value type.

You can get a pointer to the values, but that would cause two nasty things:

1. You would have to use the fixed keyword to fix the object in memory. The garbage collector doesn't really like if you fix objects for a long time, as it wants to move stuff around sometimes.

2. You would have to use the unsafe keyword whenever you would access the values, or make the entire code unsafe (which is an extremely bad idea).

If it's only the simplicity in the code you are after, just declare properties to access the values:

private double Xmax { get { return Xset.Xmax.X; } set { Xset.Xmax.X = value; } }<br />
private double Xmin { get { return Xset.Xmin.X; } set { Xset.Xmin.X = value; } }



---
b { font-weight: normal; }

GeneralRe: reference and not copy Pin
spin vector1-Mar-06 12:11
spin vector1-Mar-06 12:11 
QuestionArguments to .exe Pin
Sean891-Mar-06 8:55
Sean891-Mar-06 8:55 
AnswerRe: Arguments to .exe Pin
Somanova4201-Mar-06 9:15
Somanova4201-Mar-06 9:15 
AnswerRe: Arguments to .exe Pin
Judah Gabriel Himango1-Mar-06 9:21
sponsorJudah Gabriel Himango1-Mar-06 9:21 
AnswerRe: Arguments to .exe Pin
Sean891-Mar-06 10:17
Sean891-Mar-06 10:17 
QuestionE-Mail sending Pin
ytubis1-Mar-06 8:16
ytubis1-Mar-06 8:16 
AnswerRe: E-Mail sending Pin
Le centriste1-Mar-06 8:22
Le centriste1-Mar-06 8:22 
GeneralRe: E-Mail sending Pin
ytubis1-Mar-06 8:29
ytubis1-Mar-06 8:29 
GeneralRe: E-Mail sending Pin
ytubis1-Mar-06 8:31
ytubis1-Mar-06 8:31 
GeneralRe: E-Mail sending Pin
Le centriste1-Mar-06 8:35
Le centriste1-Mar-06 8:35 
GeneralRe: E-Mail sending Pin
Le centriste1-Mar-06 8:34
Le centriste1-Mar-06 8:34 
GeneralRe: E-Mail sending Pin
ytubis1-Mar-06 9:18
ytubis1-Mar-06 9:18 
AnswerRe: E-Mail sending Pin
mrsnipey1-Mar-06 16:54
mrsnipey1-Mar-06 16:54 
AnswerRe: E-Mail sending Pin
HimaBindu Vejella1-Mar-06 17:59
HimaBindu Vejella1-Mar-06 17:59 
QuestionTake a Report Pin
mostafa_h1-Mar-06 7:13
mostafa_h1-Mar-06 7:13 
QuestionWindows DataGrid Event Notification Pin
Subrahmanyam K1-Mar-06 6:39
Subrahmanyam K1-Mar-06 6:39 
AnswerRe: Windows DataGrid Event Notification Pin
microsoc2-Mar-06 14:42
microsoc2-Mar-06 14:42 

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.