OPTI4-Array properties that are referenced/set within methods

Top  Previous  Next

 

Array properties that are referenced/set within methods (OPTI4)

 

This is a list of all array properties that are referenced or set within methods of a class. Methods that include a reference to the property are listed.

 

For performance reasons it is faster to directly access the private array field. However, if the Get- or Set-method performs side effects, it makes sense to access the property.

 

For simple non-array properties, the compiler generates the same code for both access of the property or the field. Therefore, for normal properties there is no advantage in referencing the private field.

 

Example:

 

clip0109

 

 

See also:

 

Optimizations