找出属性特性里的 bug

来自 特性
C# 14 / .NET 10 进阶 4分钟 找出 1处问题

为什么这个属性扫描器会输出 `False`?

csharp
using System;
using System.Reflection;

var property = typeof(Customer).GetProperty(nameof(Customer.Id))!;
Console.WriteLine(property.IsDefined(typeof(ColumnAttribute), false));

public sealed class Customer
{
    [field: Column]
    public string Id { get; init; } = string.Empty;
}

[AttributeUsage(AttributeTargets.Field)]
public sealed class ColumnAttribute : Attribute;
在试验场中打开
报告错误