这段程序会输出什么?

来自 特性
C# 14 / .NET 10 进阶 2分钟

这段程序会输出什么?

csharp
using System;
using System.Reflection;

var data = typeof(Report).GetCustomAttributesData();
Console.WriteLine($"{ProbeAttribute.Created}:{data.Count}");

_ = typeof(Report).GetCustomAttribute<ProbeAttribute>();
Console.WriteLine(ProbeAttribute.Created);

[Probe]
public sealed class Report;

public sealed class ProbeAttribute : Attribute
{
    public static int Created { get; private set; }
    public ProbeAttribute() => Created++;
}
在试验场中打开
报告错误