private static CustomAttribute CreateDebuggerNonUserCodeAttribute(MsCoreReferenceFinder msCoreReferenceFinder, ModuleDefinition importingModule)
{
var attributeType = msCoreReferenceFinder.DebuggerNonUserCodeAttribute;
if (attributeType == null)
{
return null;
}
var attribute = new CustomAttribute(importingModule.Import(attributeType.Resolve().Constructor(false)));
return attribute;
}
}