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

C#

 
QuestionCoding Standard Question Pin
donovan.solms1-Oct-07 9:50
donovan.solms1-Oct-07 9:50 
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 
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?


Well - the 1st is a better coding standard because it actually does something. The second doesn't actually accomplish anything. You would normally use the second one in an interface.

Deja View - the feeling that you've seen this post before.

AnswerRe: Coding Standard Question Pin
Matthew Cuba1-Oct-07 10:19
Matthew Cuba1-Oct-07 10:19 
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 

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.