order stationary constructors/initializers c#
while operative c# app i only beheld several places stationary initializers have dependencies any this:
static private list<int> = new list<int>() { 0 };
static private list<int> b = new list<int>() { a[0] };
without doing anything special worked. only luck? does c# have manners solve this?
edit: (re: panos) record verbatim method seems king? opposing files?
in looking i attempted cyclical dependency this:
static private list<int> = new list<int>() { b[0] };
static private list<int> b = new list<int>() { a[0] };
and way didn't run same (the exam fit unsuccessful opposing house i didn't feeling further).
Comments
Post a Comment