Mono.Cecil.Fluent.CecilExtensions.IsCompilerGenerated C# (CSharp) Method

IsCompilerGenerated() public static method

public static IsCompilerGenerated ( this provider ) : bool
provider this
return bool
        public static bool IsCompilerGenerated(this ICustomAttributeProvider provider)
        {
            if (provider != null && provider.HasCustomAttributes)
            {
                return provider.CustomAttributes.Any(a => a.AttributeType.FullName == "System.Runtime.CompilerServices.CompilerGeneratedAttribute");
            }
            return false;
        }