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

C#

 
GeneralRe: Equivalent way to achieve const or readonly return type from method Pin
fjdiewornncalwe27-Jan-11 8:49
professionalfjdiewornncalwe27-Jan-11 8:49 
GeneralRe: Equivalent way to achieve const or readonly return type from method Pin
bob1697227-Jan-11 8:56
bob1697227-Jan-11 8:56 
AnswerRe: Equivalent way to achieve const or readonly return type from method Pin
RobCroll27-Jan-11 12:06
RobCroll27-Jan-11 12:06 
GeneralRe: Equivalent way to achieve const or readonly return type from method Pin
bob1697227-Jan-11 18:35
bob1697227-Jan-11 18:35 
GeneralRe: Equivalent way to achieve const or readonly return type from method Pin
RobCroll27-Jan-11 18:55
RobCroll27-Jan-11 18:55 
GeneralRe: Equivalent way to achieve const or readonly return type from method Pin
Bernhard Hiller28-Jan-11 1:24
Bernhard Hiller28-Jan-11 1:24 
GeneralRe: Equivalent way to achieve const or readonly return type from method Pin
bob1697228-Jan-11 3:08
bob1697228-Jan-11 3:08 
AnswerRe: Equivalent way to achieve const or readonly return type from method Pin
TheGreatAndPowerfulOz28-Jan-11 7:38
TheGreatAndPowerfulOz28-Jan-11 7:38 
Another option is to "wrap" the class in another which has readonly properties that forward to the encapsulated class. Although, I'd only use that option if I were using a class from a third-party codebase. If it's your code, I think the interface option is better, especially since it allows you to cast away the "const" interface. (Although the same could be achieved with the wrapper class.)
"If your actions inspire others to dream more, learn more, do more and become more, you are a leader." - John Quincy Adams

QuestionAccessviolationException was unhandled when doing SendMessage to get DeviceArrival message upon startup of program [modified] Pin
Blubbo27-Jan-11 2:24
Blubbo27-Jan-11 2:24 
AnswerRe: AccessviolationException was unhandled when doing SendMessage to get DeviceArrival message upon startup of program Pin
RaviRanjanKr27-Jan-11 2:42
professionalRaviRanjanKr27-Jan-11 2:42 
GeneralRe: AccessviolationException was unhandled when doing SendMessage to get DeviceArrival message upon startup of program Pin
Blubbo27-Jan-11 2:53
Blubbo27-Jan-11 2:53 
AnswerRe: AccessviolationException was unhandled when doing SendMessage to get DeviceArrival message upon startup of program Pin
Luc Pattyn27-Jan-11 3:00
sitebuilderLuc Pattyn27-Jan-11 3:00 
GeneralRe: AccessviolationException was unhandled when doing SendMessage to get DeviceArrival message upon startup of program Pin
Blubbo27-Jan-11 2:58
Blubbo27-Jan-11 2:58 
AnswerRe: AccessviolationException was unhandled when doing SendMessage to get DeviceArrival message upon startup of program Pin
Luc Pattyn27-Jan-11 3:08
sitebuilderLuc Pattyn27-Jan-11 3:08 
GeneralRe: AccessviolationException was unhandled when doing SendMessage to get DeviceArrival message upon startup of program Pin
Blubbo27-Jan-11 3:24
Blubbo27-Jan-11 3:24 
AnswerRe: AccessviolationException was unhandled when doing SendMessage to get DeviceArrival message upon startup of program Pin
Luc Pattyn27-Jan-11 3:39
sitebuilderLuc Pattyn27-Jan-11 3:39 
AnswerRe: AccessviolationException was unhandled when doing SendMessage to get DeviceArrival message upon startup of program Pin
Alan N27-Jan-11 3:20
Alan N27-Jan-11 3:20 
GeneralRe: AccessviolationException was unhandled when doing SendMessage to get DeviceArrival message upon startup of program Pin
Blubbo27-Jan-11 6:43
Blubbo27-Jan-11 6:43 
GeneralRe: AccessviolationException was unhandled when doing SendMessage to get DeviceArrival message upon startup of program Pin
Blubbo27-Jan-11 6:57
Blubbo27-Jan-11 6:57 
AnswerRe: AccessviolationException was unhandled when doing SendMessage to get DeviceArrival message upon startup of program Pin
_Erik_27-Jan-11 5:39
_Erik_27-Jan-11 5:39 
QuestionZoom in on a label without changing the font size [modified] Pin
Lee Reid27-Jan-11 0:57
Lee Reid27-Jan-11 0:57 
AnswerRe: Zoom in on a label without changing the font size Pin
Henry Minute27-Jan-11 4:09
Henry Minute27-Jan-11 4:09 
AnswerRe: Zoom in on a label without changing the font size Pin
dojohansen27-Jan-11 22:00
dojohansen27-Jan-11 22:00 
QuestionDownloading file (with out extension) from Ftp throwing error Pin
arun_pk27-Jan-11 0:24
arun_pk27-Jan-11 0:24 
AnswerRe: Downloading file (with out extension) from Ftp throwing error Pin
Pete O'Hanlon27-Jan-11 1:30
mvePete O'Hanlon27-Jan-11 1:30 

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.