Click here to Skip to main content
15,909,324 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Create 25KHz Heartbeat Method Pin
harold aptroot29-Nov-09 9:01
harold aptroot29-Nov-09 9:01 
GeneralRe: Create 25KHz Heartbeat Method Pin
Luc Pattyn29-Nov-09 9:38
sitebuilderLuc Pattyn29-Nov-09 9:38 
GeneralRe: Create 25KHz Heartbeat Method Pin
Dave Kreskowiak30-Nov-09 7:38
mveDave Kreskowiak30-Nov-09 7:38 
GeneralRe: Create 25KHz Heartbeat Method Pin
harold aptroot30-Nov-09 7:56
harold aptroot30-Nov-09 7:56 
GeneralRe: Create 25KHz Heartbeat Method Pin
Luc Pattyn30-Nov-09 9:35
sitebuilderLuc Pattyn30-Nov-09 9:35 
GeneralRe: Create 25KHz Heartbeat Method Pin
harold aptroot30-Nov-09 9:37
harold aptroot30-Nov-09 9:37 
QuestionCoding Style Question Pin
#realJSOP28-Nov-09 2:43
professional#realJSOP28-Nov-09 2:43 
AnswerRe: Coding Style Question Pin
Luc Pattyn28-Nov-09 3:13
sitebuilderLuc Pattyn28-Nov-09 3:13 
I haven't done such things myself, and I wouldn't do it.

Most often a getter simply returns a private data member's value, whereas a setter may be more complex, as it may have to update the internal state of the entire object, not just the one corresponding data member.

A calculation deserves a method. However IMO it is just a matter of style, I know of no technical reason to prefer a method over a getter property.

And that would be the same in most .NET languages...

Smile | :)

Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]

I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages


GeneralRe: Coding Style Question Pin
Eddy Vluggen28-Nov-09 8:52
professionalEddy Vluggen28-Nov-09 8:52 
GeneralRe: Coding Style Question Pin
Luc Pattyn28-Nov-09 9:20
sitebuilderLuc Pattyn28-Nov-09 9:20 
AnswerRe: Coding Style Question Pin
Rozis28-Nov-09 4:39
Rozis28-Nov-09 4:39 
GeneralRe: Coding Style Question Pin
#realJSOP28-Nov-09 7:40
professional#realJSOP28-Nov-09 7:40 
AnswerRe: Coding Style Question Pin
Not Active28-Nov-09 4:49
mentorNot Active28-Nov-09 4:49 
AnswerRe: Coding Style Question Pin
dan!sh 28-Nov-09 5:52
professional dan!sh 28-Nov-09 5:52 
AnswerRe: Coding Style Question Pin
T210228-Nov-09 22:55
T210228-Nov-09 22:55 
AnswerRe: Coding Style Question Pin
vtchris-peterson1-Dec-09 9:39
vtchris-peterson1-Dec-09 9:39 
Questionwait process , please help me Pin
darkyro28-Nov-09 2:12
darkyro28-Nov-09 2:12 
AnswerRe: wait process , please help me Pin
#realJSOP28-Nov-09 2:44
professional#realJSOP28-Nov-09 2:44 
AnswerRe: wait process , please help me Pin
darkyro28-Nov-09 3:35
darkyro28-Nov-09 3:35 
GeneralRe: wait process , please help me Pin
darkyro8-Dec-09 4:08
darkyro8-Dec-09 4:08 
QuestionUsing Ngen.exe : where is the VS Studio command prompt for VS 2010 beta 2 ? Pin
BillWoodruff27-Nov-09 6:02
professionalBillWoodruff27-Nov-09 6:02 
AnswerRe: Using Ngen.exe : where is the VS Studio command prompt for VS 2010 beta 2 ? Pin
#realJSOP28-Nov-09 2:47
professional#realJSOP28-Nov-09 2:47 
GeneralRe: Using Ngen.exe : where is the VS Studio command prompt for VS 2010 beta 2 ? Pin
BillWoodruff28-Nov-09 5:28
professionalBillWoodruff28-Nov-09 5:28 
GeneralRe: Using Ngen.exe : where is the VS Studio command prompt for VS 2010 beta 2 ? Pin
#realJSOP28-Nov-09 7:37
professional#realJSOP28-Nov-09 7:37 
GeneralRe: Using Ngen.exe : where is the VS Studio command prompt for VS 2010 beta 2 ? Pin
BillWoodruff28-Nov-09 19:27
professionalBillWoodruff28-Nov-09 19:27 

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.