Lazy Loading with PostSharp(nesteruk.org)
submitted by
dmitri(408) 2 years, 11 months ago
Recently I wanted to use PostSharp for some simplistic lazy loading, but ended up hitting a couple of problems along the way. It all started very well – I defined an OnFieldAccessAttribute, removed the field in GetOptions() and overrided OnGetValue() to lazily create the type. My creation code was something like the following:
|category: C#
|Views: 37
tags:
PostSharp AOP C# another
Everyones tags:
Your Tags: