Click here to Skip to main content
15,892,517 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: c# Const vs. Readonly, Scope, Usings Pin
TheGreatAndPowerfulOz7-Jun-17 5:46
TheGreatAndPowerfulOz7-Jun-17 5:46 
GeneralRe: c# Const vs. Readonly, Scope, Usings Pin
dandy728-Jun-17 3:45
dandy728-Jun-17 3:45 
GeneralRe: c# Const vs. Readonly, Scope, Usings Pin
kalberts8-Jun-17 2:21
kalberts8-Jun-17 2:21 
GeneralRe: c# Const vs. Readonly, Scope, Usings Pin
dandy728-Jun-17 3:44
dandy728-Jun-17 3:44 
GeneralRe: c# Usings Pin
irneb8-Jun-17 5:07
irneb8-Jun-17 5:07 
GeneralRe: c# Const vs. Readonly Pin
irneb8-Jun-17 5:14
irneb8-Jun-17 5:14 
GeneralRe: c# Const parameters Pin
irneb8-Jun-17 5:27
irneb8-Jun-17 5:27 
GeneralRe: c# Scope in properties Pin
irneb8-Jun-17 5:30
irneb8-Jun-17 5:30 
Here you may be onto something. I'd imagine getting something like this working at present would be a form of making automatic struct types for each property - incorporating their default properties with a get set as defined in code. Perhaps including it into the spec could be done more efficiently.

It should definitely not be enforced though. In some cases the rest of the class does need to see the underlying data without needing to go through the accessor methods. Which in turn brings up another issue in C# ... the inability to have default properties like you can in VB-Net. In C# your closest match is to make implicit type-casting operator overloads.

GeneralRe: c# Const vs. Readonly, Scope, Usings Pin
Caslen9-Jun-17 8:36
Caslen9-Jun-17 8:36 
GeneraliOS 11 can automatically delete apps to save space Pin
ZurdoDev7-Jun-17 3:24
professionalZurdoDev7-Jun-17 3:24 
GeneralRe: iOS 11 can automatically delete apps to save space Pin
harold aptroot7-Jun-17 3:35
harold aptroot7-Jun-17 3:35 
GeneralRe: iOS 11 can automatically delete apps to save space Pin
lopatir7-Jun-17 3:37
lopatir7-Jun-17 3:37 
GeneralRe: iOS 11 can automatically delete apps to save space Pin
ZurdoDev7-Jun-17 3:39
professionalZurdoDev7-Jun-17 3:39 
GeneralRe: iOS 11 can automatically delete apps to save space Pin
  Forogar  7-Jun-17 3:47
professional  Forogar  7-Jun-17 3:47 
GeneralRe: iOS 11 can automatically delete apps to save space Pin
OriginalGriff7-Jun-17 3:56
mveOriginalGriff7-Jun-17 3:56 
GeneralRe: iOS 11 can automatically delete apps to save space Pin
megaadam7-Jun-17 4:27
professionalmegaadam7-Jun-17 4:27 
GeneralRe: iOS 11 can automatically delete apps to save space Pin
Chris Maunder7-Jun-17 4:49
cofounderChris Maunder7-Jun-17 4:49 
GeneralRe: iOS 11 can automatically delete apps to save space Pin
ZurdoDev7-Jun-17 4:52
professionalZurdoDev7-Jun-17 4:52 
GeneralRe: iOS 11 can automatically delete apps to save space Pin
Chris Maunder7-Jun-17 4:55
cofounderChris Maunder7-Jun-17 4:55 
GeneralRe: iOS 11 can automatically delete apps to save space Pin
Nelek7-Jun-17 5:38
protectorNelek7-Jun-17 5:38 
GeneralRe: iOS 11 can automatically delete apps to save space Pin
dandy727-Jun-17 5:12
dandy727-Jun-17 5:12 
GeneralRe: iOS 11 can automatically delete apps to save space Pin
ZurdoDev7-Jun-17 5:16
professionalZurdoDev7-Jun-17 5:16 
GeneralRe: iOS 11 can automatically delete apps to save space Pin
dandy727-Jun-17 5:24
dandy727-Jun-17 5:24 
GeneralRe: iOS 11 can automatically delete apps to save space Pin
ZurdoDev7-Jun-17 5:25
professionalZurdoDev7-Jun-17 5:25 
GeneralRe: iOS 11 can automatically delete apps to save space Pin
dandy727-Jun-17 5:29
dandy727-Jun-17 5:29 

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.