audio - Static Constructors in Background Agents -
in every background audio sample have found windows phone 7.5/8, see following construct, , know why:
private static bool _classinitialized; public backgroundaudioagent() { if (!_classinitialized) { _classinitialized = true; // other static initialization } }
this bizarre way static initialization - why not use static constructor? i've experimented using static constructors, , seem work without issue, expect.
despite apparent uselessness of style of code, hesitate dismiss comes authors of audio api. there reason not use static constructors in background agents?
Comments
Post a Comment