Use auto-properties in attributes to enforce readonly

このコミットが含まれているのは:
Sergio Pedri committed 2023-11-20 23:06:22 +01:00
1 親 0e24e68b10
コミット e3e6f89038
19ファイル変更
+20 -20

検索条件に一致するファイルはありません

+1 -1
ファイルの表示
@@ -14,7 +14,7 @@ internal sealed class HlslIntrinsicNameAttribute(string name) : Attribute
/// <summary>
/// Gets the name of the HLSL intrinsic.
/// </summary>
public string Name => name;
public string Name { get; } = name;
/// <summary>
/// Gets whether or not matching parameters is also required to extract the name of this intrinsic.