/** Includes the cost of all static initialization blocks, as well as static field assignments. */ private void addStaticInitializationCost(MethodInfo baseMethod, TestabilityVisitor.CostRecordingFrame frame) { if (baseMethod.IsStaticConstructor()) { return; } foreach (var method in baseMethod.ClassInfo.GetMethods()) { //if (method.Name.StartsWith("<clinit>")) if (method.Name.StartsWith(".cctor")) { // TODO, different way to represent constructor method, by sunlw frame.applyImplicitCost(method, Reason.IMPLICIT_STATIC_INIT); } } }