diff --git a/lang/csharp/src/apache/main/File/DataFileConstants.cs b/lang/csharp/src/apache/main/File/DataFileConstants.cs index 27b034e7ac2..b99e0a4447f 100644 --- a/lang/csharp/src/apache/main/File/DataFileConstants.cs +++ b/lang/csharp/src/apache/main/File/DataFileConstants.cs @@ -21,9 +21,6 @@ namespace Avro.File /// /// Constants used in data files. /// - [System.Diagnostics.CodeAnalysis.SuppressMessage("Design", - "CA1052:Static holder types should be Static or NotInheritable", - Justification = "Maintain public API")] public class DataFileConstants { /// @@ -64,10 +61,13 @@ public class DataFileConstants /// /// Magic bytes at the beginning of an Avro data file. /// - public static byte[] Magic = { (byte)'O', - (byte)'b', - (byte)'j', - Version }; + public static readonly byte[] Magic = + { + (byte)'O', + (byte)'b', + (byte)'j', + Version, + }; /// /// Hash code for the null codec.