Click here to Skip to main content
15,888,454 members
Home / Discussions / C#
   

C#

 
GeneralIntPtr to byte array : Safely Pin
Anonymous12-Aug-03 1:31
Anonymous12-Aug-03 1:31 
GeneralRe: IntPtr to byte array : Safely Pin
Nnamdi Onyeyiri12-Aug-03 3:59
Nnamdi Onyeyiri12-Aug-03 3:59 
GeneralRe: IntPtr to byte array : Safely Pin
James T. Johnson12-Aug-03 5:13
James T. Johnson12-Aug-03 5:13 
GeneralRe: IntPtr to byte array : Safely Pin
Nnamdi Onyeyiri12-Aug-03 5:23
Nnamdi Onyeyiri12-Aug-03 5:23 
GeneralRe: IntPtr to byte array : Safely Pin
Heath Stewart12-Aug-03 9:09
protectorHeath Stewart12-Aug-03 9:09 
Generalsyntax highlighting control... Pin
FreJa11-Aug-03 23:50
FreJa11-Aug-03 23:50 
GeneralRe: syntax highlighting control... Pin
Kannan Kalyanaraman12-Aug-03 0:49
Kannan Kalyanaraman12-Aug-03 0:49 
Generalconstant references to non-constant objects Pin
berndg11-Aug-03 22:33
berndg11-Aug-03 22:33 
I am declaring a variable holding an object, and a reference to that variable. Like so:


CWhatever oObject = new CWhatever("xyz");
CWhatever oReference = oObject;


Further more, I would like oReference always to refer to the object initially assigned to oObject. In C++ speak and using pointers, this would be something like


CWhatever * const pObject = new CWhatever("xyz");


Note it is not the object that is constant, but the reference.

I fail to find how C# supports such a restriction. Any clues (other than using managed C++)?

TIA,
Bernd
GeneralRe: constant references to non-constant objects Pin
James T. Johnson12-Aug-03 1:19
James T. Johnson12-Aug-03 1:19 
GeneralRe: constant references to non-constant objects Pin
berndg12-Aug-03 2:43
berndg12-Aug-03 2:43 
GeneralLinkLabel and Context Menu Pin
..Hubert..11-Aug-03 22:31
..Hubert..11-Aug-03 22:31 
GeneralRe: LinkLabel and Context Menu Pin
James T. Johnson12-Aug-03 1:28
James T. Johnson12-Aug-03 1:28 
GeneralRe: LinkLabel and Context Menu Pin
..Hubert..12-Aug-03 2:19
..Hubert..12-Aug-03 2:19 
QuestionHowto send Text to a Word Doc ? Pin
Anonymous11-Aug-03 21:25
Anonymous11-Aug-03 21:25 
AnswerRe: Howto send Text to a Word Doc ? Pin
MeisterBiber12-Aug-03 1:57
MeisterBiber12-Aug-03 1:57 
GeneralRe: Howto send Text to a Word Doc ? Pin
Anonymous17-Aug-03 20:06
Anonymous17-Aug-03 20:06 
GeneralOperator overloading with strings Pin
hzs11-Aug-03 20:15
hzs11-Aug-03 20:15 
GeneralRe: Operator overloading with strings Pin
J. Dunlap11-Aug-03 21:10
J. Dunlap11-Aug-03 21:10 
GeneralRe: Operator overloading with strings Pin
hzs12-Aug-03 1:39
hzs12-Aug-03 1:39 
GeneralRe: Operator overloading with strings Pin
Ista12-Aug-03 4:16
Ista12-Aug-03 4:16 
GeneralRe: Operator overloading with strings Pin
hzs12-Aug-03 20:09
hzs12-Aug-03 20:09 
GeneralRe: Operator overloading with strings Pin
Ista13-Aug-03 3:39
Ista13-Aug-03 3:39 
GeneralRe: Operator overloading with strings Pin
Julian Bucknall [MSFT]12-Aug-03 6:09
Julian Bucknall [MSFT]12-Aug-03 6:09 
GeneralRe: Operator overloading with strings Pin
hzs12-Aug-03 20:25
hzs12-Aug-03 20:25 
GeneralRe: Operator overloading with strings Pin
isarfraz17-Aug-03 19:53
isarfraz17-Aug-03 19:53 

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.