This is an automated email from the ASF dual-hosted git repository.

CurtHagenlocher pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-dotnet.git


The following commit(s) were added to refs/heads/main by this push:
     new cd29cc1  Make readonly field is possible (#385)
cd29cc1 is described below

commit cd29cc12617c60ab9627b8cb3dbfaddb4772d219
Author: kronic <[email protected]>
AuthorDate: Tue Jul 7 02:44:04 2026 +0700

    Make readonly field is possible (#385)
    
    Make readonly field is possible
---
 src/Apache.Arrow/Arrays/Bool8Array.cs    | 2 +-
 src/Apache.Arrow/Arrays/GuidArray.cs     | 2 +-
 src/Apache.Arrow/Arrays/VariantArray.cs  | 4 ++--
 src/Apache.Arrow/Types/StringType.cs     | 2 +-
 src/Apache.Arrow/Types/StringViewType.cs | 2 +-
 5 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/Apache.Arrow/Arrays/Bool8Array.cs 
b/src/Apache.Arrow/Arrays/Bool8Array.cs
index c250e4e..4038fb2 100644
--- a/src/Apache.Arrow/Arrays/Bool8Array.cs
+++ b/src/Apache.Arrow/Arrays/Bool8Array.cs
@@ -50,7 +50,7 @@ namespace Apache.Arrow
     /// </summary>
     public class Bool8Type : ExtensionType
     {
-        public static Bool8Type Default = new Bool8Type();
+        public static readonly Bool8Type Default = new Bool8Type();
 
         public override string Name => "arrow.bool8";
         public override string ExtensionMetadata => "";
diff --git a/src/Apache.Arrow/Arrays/GuidArray.cs 
b/src/Apache.Arrow/Arrays/GuidArray.cs
index cad9cfa..b5cbfc1 100644
--- a/src/Apache.Arrow/Arrays/GuidArray.cs
+++ b/src/Apache.Arrow/Arrays/GuidArray.cs
@@ -50,7 +50,7 @@ namespace Apache.Arrow
     /// </summary>
     public class GuidType : ExtensionType
     {
-        public static GuidType Default = new GuidType();
+        public static readonly GuidType Default = new GuidType();
 
         internal const int ByteWidth = 16;
 
diff --git a/src/Apache.Arrow/Arrays/VariantArray.cs 
b/src/Apache.Arrow/Arrays/VariantArray.cs
index 3071808..071b734 100644
--- a/src/Apache.Arrow/Arrays/VariantArray.cs
+++ b/src/Apache.Arrow/Arrays/VariantArray.cs
@@ -29,7 +29,7 @@ namespace Apache.Arrow
     /// </summary>
     public class VariantExtensionDefinition : ExtensionDefinition
     {
-        public static VariantExtensionDefinition Instance = new 
VariantExtensionDefinition();
+        public static readonly VariantExtensionDefinition Instance = new 
VariantExtensionDefinition();
 
         public override string ExtensionName => VariantType.ExtensionName;
 
@@ -87,7 +87,7 @@ namespace Apache.Arrow
     {
         internal const string ExtensionName = "arrow.parquet.variant";
 
-        public static VariantType Default = new VariantType();
+        public static readonly VariantType Default = new VariantType();
 
         public override string Name => ExtensionName;
         public override string ExtensionMetadata => "";
diff --git a/src/Apache.Arrow/Types/StringType.cs 
b/src/Apache.Arrow/Types/StringType.cs
index 33620aa..54ecbcb 100644
--- a/src/Apache.Arrow/Types/StringType.cs
+++ b/src/Apache.Arrow/Types/StringType.cs
@@ -18,7 +18,7 @@ namespace Apache.Arrow.Types
 {
     public sealed class StringType : ArrowType
     {
-        public static StringType Default = new StringType();
+        public static readonly StringType Default = new StringType();
 
         public override ArrowTypeId TypeId => ArrowTypeId.String;
         public override string Name => "utf8";
diff --git a/src/Apache.Arrow/Types/StringViewType.cs 
b/src/Apache.Arrow/Types/StringViewType.cs
index 0c539a5..a2ff91a 100644
--- a/src/Apache.Arrow/Types/StringViewType.cs
+++ b/src/Apache.Arrow/Types/StringViewType.cs
@@ -18,7 +18,7 @@ namespace Apache.Arrow.Types
 {
     public sealed class StringViewType : ArrowType
     {
-        public static StringViewType Default = new StringViewType();
+        public static readonly StringViewType Default = new StringViewType();
 
         public override ArrowTypeId TypeId => ArrowTypeId.StringView;
         public override string Name => "utf8view";

Reply via email to