Should I be storing a property in a temporary variable for performance reasons?
Example:
Assume MyClass has a Property called Center that is CPU intensive to calculate.
Would this:
if (MyClass.Center.x > 0 || MyClass.Center.y > 0) ...
take twice as long as this:
Point temp = MyClass.Center;
if (temp.x > 0 || temp.y > 0) ...
or does to compiler take care of this situation?