Click here to Skip to main content
15,881,204 members
Home / Discussions / C#
   

C#

 
GeneralRe: Coding Styles for Properties Pin
Arjan Einbu13-Aug-03 21:48
Arjan Einbu13-Aug-03 21:48 
GeneralRe: Coding Styles for Properties Pin
Frank Olorin Rizzi14-Aug-03 6:23
Frank Olorin Rizzi14-Aug-03 6:23 
GeneralRe: Coding Styles for Properties Pin
leppie14-Aug-03 7:07
leppie14-Aug-03 7:07 
GeneralRe: Coding Styles for Properties Pin
James T. Johnson14-Aug-03 7:16
James T. Johnson14-Aug-03 7:16 
GeneralRe: Coding Styles for Properties Pin
Frank Olorin Rizzi14-Aug-03 7:24
Frank Olorin Rizzi14-Aug-03 7:24 
GeneralRe: Coding Styles for Properties Pin
Arjan Einbu13-Aug-03 21:42
Arjan Einbu13-Aug-03 21:42 
GeneralRe: Coding Styles for Properties Pin
Olga.14-Aug-03 1:37
sussOlga.14-Aug-03 1:37 
GeneralRe: Coding Styles for Properties Pin
Frank Olorin Rizzi14-Aug-03 6:21
Frank Olorin Rizzi14-Aug-03 6:21 
I do the "inconsistent" way:

<br />
public string Name<br />
{<br />
  get { return _name; }<br />
  set<br />
  {<br />
    //blah..blah...<br />
    return x;<br />
  }<br />
}<br />


might be inconsistent,
but I don't think it's too bad...
..after all, the get and set are truly two separate methods,
so if you look at them separately, they end up being consistent
with the rest of the code (where I generally have on one line ONLY the one-liner methods)..

F.O.R.
PS: Then again, it's all style, and that's all about personal preference, right?
GeneralRe: Coding Styles for Properties Pin
Bo Hunter14-Aug-03 9:34
Bo Hunter14-Aug-03 9:34 
GeneralRe: Coding Styles for Properties Pin
A.Wegierski15-Aug-03 20:11
A.Wegierski15-Aug-03 20:11 
GeneralEvents Pin
deanoA13-Aug-03 15:50
deanoA13-Aug-03 15:50 
GeneralRe: Events Pin
J. Dunlap13-Aug-03 16:03
J. Dunlap13-Aug-03 16:03 
GeneralRe: Events Pin
Meysam Mahfouzi13-Aug-03 17:58
Meysam Mahfouzi13-Aug-03 17:58 
GeneralRe: Events Pin
Ista14-Aug-03 4:10
Ista14-Aug-03 4:10 
GeneralDatabase, ODP.NET, ADODC Pin
CyberKewl13-Aug-03 14:28
CyberKewl13-Aug-03 14:28 
GeneralRe: Database, ODP.NET, ADODC Pin
Ista13-Aug-03 15:24
Ista13-Aug-03 15:24 
GeneralONE CLICK Pin
eggie513-Aug-03 13:34
eggie513-Aug-03 13:34 
GeneralRe: ONE CLICK Pin
Alvaro Mendez13-Aug-03 14:14
Alvaro Mendez13-Aug-03 14:14 
GeneralRe: ONE CLICK Pin
Furty13-Aug-03 14:21
Furty13-Aug-03 14:21 
GeneralRe: ONE CLICK Pin
eggie513-Aug-03 14:34
eggie513-Aug-03 14:34 
GeneralRe: ONE CLICK Pin
eggie513-Aug-03 17:00
eggie513-Aug-03 17:00 
GeneralRe: ONE CLICK Pin
Rocky Moore13-Aug-03 14:31
Rocky Moore13-Aug-03 14:31 
GeneralRe: ONE CLICK Pin
eggie513-Aug-03 16:38
eggie513-Aug-03 16:38 
GeneralRe: ONE CLICK Pin
Rocky Moore13-Aug-03 21:29
Rocky Moore13-Aug-03 21:29 
GeneralRe: ONE CLICK Pin
eggie513-Aug-03 21:35
eggie513-Aug-03 21:35 

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.