static AttributeType DecomposeAttributeType (string marker) { if (marker.StartsWith ("SC")) return AttributeType.Critical; else if (marker.StartsWith ("SSC")) return AttributeType.SafeCritical; else throw new ArgumentException (); }