Click here to Skip to main content
16,004,944 members
Home / Discussions / C#
   

C#

 
GeneralRe: Coding Standard Question Pin
donovan.solms1-Oct-07 10:34
donovan.solms1-Oct-07 10:34 
GeneralRe: Coding Standard Question Pin
Dan Neely1-Oct-07 10:51
Dan Neely1-Oct-07 10:51 
GeneralRe: Coding Standard Question Pin
PIEBALDconsult1-Oct-07 13:58
mvePIEBALDconsult1-Oct-07 13:58 
GeneralRe: Coding Standard Question Pin
Scott Dorman1-Oct-07 15:46
professionalScott Dorman1-Oct-07 15:46 
AnswerRe: Coding Standard Question Pin
Scott Dorman1-Oct-07 15:50
professionalScott Dorman1-Oct-07 15:50 
GeneralRe: Coding Standard Question Pin
PIEBALDconsult1-Oct-07 16:56
mvePIEBALDconsult1-Oct-07 16:56 
JokeRe: Coding Standard Question Pin
Pete O'Hanlon1-Oct-07 21:59
mvePete O'Hanlon1-Oct-07 21:59 
GeneralRe: Coding Standard Question Pin
Scott Dorman2-Oct-07 2:59
professionalScott Dorman2-Oct-07 2:59 
In theory, I agree with you. In practice, however, I don't mainly because there are already a lot of cases where Microsoft is generating code for you. If you use any .NET remoting or serialization, the JIT is compiling an entire assembly on-the-fly at runtime for you; the using statement, ~T (finalizer), anonymous delegates, and generics all generate code at compile time on your behalf. There really isn't a way around it anymore...if you use .NET at somepoint Microsoft is generating code for you either at compile time, run time, or both.

PIEBALDconsult wrote:
Does that mean even the class itself is required to use the property?


I'm not sure what you mean by this. In the class, when you want to reference the property you use it just like you would any other property. The only difference is that there isn't an excplict backing variable that you could access instead, so you always use the property.

PIEBALDconsult wrote:
I hope the calls will be inlined.


How would this matter? I don't believe they are, since this is really just more syntatic sugar, the compiler treats them just like it would any other property.


Scott.

—In just two days, tomorrow will be yesterday.

[Forum Guidelines] [Articles] [Blog]

GeneralRe: Coding Standard Question Pin
Robert Rohde2-Oct-07 1:55
Robert Rohde2-Oct-07 1:55 
GeneralRe: Coding Standard Question Pin
Scott Dorman2-Oct-07 3:01
professionalScott Dorman2-Oct-07 3:01 
GeneralRe: Coding Standard Question Pin
PIEBALDconsult2-Oct-07 5:41
mvePIEBALDconsult2-Oct-07 5:41 
QuestionSelecting listview item by method not retained when tabbing into listview Pin
jchalfant1-Oct-07 9:30
jchalfant1-Oct-07 9:30 
AnswerRe: Selecting listview item by method not retained when tabbing into listview Pin
jchalfant1-Oct-07 9:59
jchalfant1-Oct-07 9:59 
Questioncalling modeless lookup form from datagridview combobox Pin
AndrusM1-Oct-07 9:29
AndrusM1-Oct-07 9:29 
QuestionInsert a row in Gridview Pin
ss.mmm1-Oct-07 9:24
ss.mmm1-Oct-07 9:24 
AnswerRe: Insert a row in Gridview Pin
Not Active1-Oct-07 9:46
mentorNot Active1-Oct-07 9:46 
GeneralRe: Insert a row in Gridview Pin
ss.mmm1-Oct-07 9:55
ss.mmm1-Oct-07 9:55 
GeneralRe: Insert a row in Gridview Pin
Not Active1-Oct-07 10:05
mentorNot Active1-Oct-07 10:05 
GeneralRe: Insert a row in Gridview Pin
DotNetXenon1-Oct-07 10:12
DotNetXenon1-Oct-07 10:12 
GeneralRe: Insert a row in Gridview Pin
ss.mmm15-Oct-07 8:28
ss.mmm15-Oct-07 8:28 
QuestionUniversal Toolbox Item installation help Pin
Jason Farrar1-Oct-07 9:06
Jason Farrar1-Oct-07 9:06 
AnswerRe: Universal Toolbox Item installation help Pin
TJoe1-Oct-07 13:10
TJoe1-Oct-07 13:10 
QuestionMSMQ Triggers Pin
Not Active1-Oct-07 9:06
mentorNot Active1-Oct-07 9:06 
AnswerRe: MSMQ Triggers Pin
led mike1-Oct-07 9:25
led mike1-Oct-07 9:25 
GeneralRe: MSMQ Triggers Pin
Not Active1-Oct-07 9:42
mentorNot Active1-Oct-07 9: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.