Use collection expressions for array initializations

このコミットが含まれているのは:
Sergio Pedri committed 2023-11-20 23:06:22 +01:00
1 親 8dc70916ac
コミット 6d560f08e2
14ファイル変更
+145 -155

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

+3 -3
ファイルの表示
@@ -16,11 +16,11 @@ public sealed class MissingComputeShaderDescriptorOnComputeShaderCodeFixer : Mis
/// <summary>
/// The set of type names for all attributes that can be over shader types.
/// </summary>
private static readonly string[] D2DAttributeTypeNames = new[]
{
private static readonly string[] D2DAttributeTypeNames =
[
"ComputeSharp.EmbeddedBytecodeAttribute",
"ComputeSharp.GroupSharedAttribute"
};
];
/// <summary>
/// Creates a new <see cref="MissingAttributeCodeFixer"/> instance with the specified parameters.