Click here to Skip to main content
15,899,679 members
Home / Discussions / C#
   

C#

 
AnswerRe: Coding Standard Question Pin
Not Active1-Oct-07 9:52
mentorNot Active1-Oct-07 9:52 
AnswerRe: Coding Standard Question Pin
pmarfleet1-Oct-07 10:05
pmarfleet1-Oct-07 10:05 
GeneralRe: Coding Standard Question Pin
donovan.solms1-Oct-07 10:07
donovan.solms1-Oct-07 10:07 
GeneralRe: Coding Standard Question Pin
Pete O'Hanlon1-Oct-07 10:10
mvePete O'Hanlon1-Oct-07 10:10 
GeneralRe: Coding Standard Question Pin
Robert Rohde2-Oct-07 1:52
Robert Rohde2-Oct-07 1:52 
GeneralRe: Coding Standard Question Pin
Pete O'Hanlon2-Oct-07 2:15
mvePete O'Hanlon2-Oct-07 2:15 
AnswerRe: Coding Standard Question Pin
Pete O'Hanlon1-Oct-07 10:06
mvePete O'Hanlon1-Oct-07 10:06 
AnswerRe: Coding Standard Question Pin
Matthew Cuba1-Oct-07 10:19
Matthew Cuba1-Oct-07 10:19 
donsolms wrote:
Which is better according to coding standard for c#?

this:


public bool isDraggable
{
get { return _draggable; }
set { _draggable = value; }
}


or this:


public bool isDraggable{ get; set; }


without using private members? Or is this a matter of personal choice?


Hi,

For Orcas, I thought that these were essentially identical, that the compiler would generate some private fields for you. Perhaps I've missed something - I'm living in a .NET 2.0 world - but, that was my understanding of it. I suspect someone will correct me if I'm wrong.

Hope that helps.



It isn't enough to do well in life.
One must do good when and where one can.
Otherwise, what's the point?

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 
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 

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.