2022-02-09から1日間の記事一覧
■ C# 10.0 での新機能 ・汎用属性 (Generic attributes) https://docs.microsoft.com/ja-jp/dotnet/csharp/programming-guide/generics/generics-and-attributes 属性クラスでジェネリクスが使える。 [Sample<int>] void Method() {; } class SampleAttribute<T> : S</t></int>…