public static bool HasCompilerGeneratedAttribute(this ICustomAttributeProvider provider) { return provider.IsCompilerGenerated(); } }