D
DKode
Ok,
kind of a silly question I just want to know what the proper method is,
When I have local Properties, ie:
private bool _someVal;
public bool SomeVal {
get { return _someVal; }
}
When I accessing this property within the class it exists in, should I
use _someVal or always use the Property to retrieve the value? I guess
it really doesn't make a different but I noticed this is one part of my
code that isn't consistent, sometimes I use the property sometimes I
don't is there any OOP rules here to follow? THank you
kind of a silly question I just want to know what the proper method is,
When I have local Properties, ie:
private bool _someVal;
public bool SomeVal {
get { return _someVal; }
}
When I accessing this property within the class it exists in, should I
use _someVal or always use the Property to retrieve the value? I guess
it really doesn't make a different but I noticed this is one part of my
code that isn't consistent, sometimes I use the property sometimes I
don't is there any OOP rules here to follow? THank you