```csharp
//使用特性(Attributes)
using System;

[AttributeUsage(AttributeTargets.Class)]
public class HelloAttribute : Attribute {
    public HelloAttribute() {
        Console.WriteLine("Hello, World!");
    }
}

[Hello]
class Program {
    static void Main() { }
}
```