When referring to class properties from a function inside a class, do you use the value from the actual property or the value of a private variable?
Which way is better? Why?
public class
private m_Foo as double
public property Foo() as double
get
return m_Foo
end get
set(byval value as double)
m_Foo = value
end set
end property
public function bar() as double
Dim x as double = 5 * m_Foo
Dim y as double = 3 * Foo
end function
end class
user113476
source
share