Tag: Development

Community

Volatile Fields

Optimisation techniques used when compiling or running software that uses the .NET framework can lead to unexpected results. One situation that causes problems is performing non-volatile reads of fields in multithreading or parallel programming scenarios.

Community

Leverage Lazy Loading in .NET 4.0

(Eric Vogel) Lazy loading is a common design pattern often used for constructing resource-intensive objects. It’s also frequently used in conjunction with the singleton, and/or factory patterns. Lazy loading entails constructing an object at the point it’s needed, rather than when it’s declared. If