Catel.Fody.CecilExtensions.CreateDebuggerNonUserCodeAttribute C# (CSharp) Method

CreateDebuggerNonUserCodeAttribute() private static method

private static CreateDebuggerNonUserCodeAttribute ( MsCoreReferenceFinder msCoreReferenceFinder, Mono.Cecil.ModuleDefinition importingModule ) : CustomAttribute
msCoreReferenceFinder MsCoreReferenceFinder
importingModule Mono.Cecil.ModuleDefinition
return Mono.Cecil.CustomAttribute
        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;
        }
    }