void AddDebuggerStepThroughAttribute(CodeTypeDeclaration codeType) { if (codeType.IsClass) { codeType.CustomAttributes.Add(new CodeAttributeDeclaration(parent.GetCodeTypeReference(typeof(DebuggerStepThroughAttribute)))); } }