diff --git a/csharp/src/Apache.Arrow/C/CArrowArray.cs b/csharp/src/Apache.Arrow/C/CArrowArray.cs
index e5d63090fe158..882ca8caa503d 100644
--- a/csharp/src/Apache.Arrow/C/CArrowArray.cs
+++ b/csharp/src/Apache.Arrow/C/CArrowArray.cs
@@ -76,8 +76,10 @@ public static void Free(CArrowArray* array)
///
/// Call the array's release func, if set.
///
- public static void CallReleaseFunc(CArrowArray* array) {
- if (array->release != default) {
+ public static void CallReleaseFunc(CArrowArray* array)
+ {
+ if (array->release != default)
+ {
// Call release if not already called.
#if NET5_0_OR_GREATER
array->release(array);
diff --git a/csharp/src/Apache.Arrow/C/CArrowArrayExporter.cs b/csharp/src/Apache.Arrow/C/CArrowArrayExporter.cs
index 592fbc019abce..2d9febea33f54 100644
--- a/csharp/src/Apache.Arrow/C/CArrowArrayExporter.cs
+++ b/csharp/src/Apache.Arrow/C/CArrowArrayExporter.cs
@@ -195,7 +195,8 @@ private unsafe static void ReleaseArray(CArrowArray* cArray)
{
CArrowArray.CallReleaseFunc(cArray->children[i]);
}
- if (cArray->dictionary != null) {
+ if (cArray->dictionary != null)
+ {
CArrowArray.CallReleaseFunc(cArray->dictionary);
}
DisposePrivateData(&cArray->private_data);
diff --git a/csharp/src/Apache.Arrow/C/CArrowSchemaImporter.cs b/csharp/src/Apache.Arrow/C/CArrowSchemaImporter.cs
index cf48c18646dc9..f7216df869abd 100644
--- a/csharp/src/Apache.Arrow/C/CArrowSchemaImporter.cs
+++ b/csharp/src/Apache.Arrow/C/CArrowSchemaImporter.cs
@@ -241,7 +241,8 @@ public ArrowType GetAsType()
};
string timezone = format.Substring(format.IndexOf(':') + 1);
- if (timezone.Length == 0) {
+ if (timezone.Length == 0)
+ {
timezone = null;
}
return new TimestampType(timeUnit, timezone);
diff --git a/csharp/src/Apache.Arrow/Memory/ExportedAllocationOwner.cs b/csharp/src/Apache.Arrow/Memory/ExportedAllocationOwner.cs
index cad634ef2477d..05529899e410c 100644
--- a/csharp/src/Apache.Arrow/Memory/ExportedAllocationOwner.cs
+++ b/csharp/src/Apache.Arrow/Memory/ExportedAllocationOwner.cs
@@ -58,14 +58,16 @@ public void IncRef()
public void DecRef()
{
- if (Interlocked.Decrement(ref _referenceCount) == 0) {
+ if (Interlocked.Decrement(ref _referenceCount) == 0)
+ {
Dispose();
}
}
public void Dispose()
{
- if (_disposed) {
+ if (_disposed)
+ {
return;
}
for (int i = 0; i < _pointers.Count; i++)
diff --git a/csharp/test/Apache.Arrow.IntegrationTest/JsonFile.cs b/csharp/test/Apache.Arrow.IntegrationTest/JsonFile.cs
index 20a3203d95d01..85f66890edf47 100644
--- a/csharp/test/Apache.Arrow.IntegrationTest/JsonFile.cs
+++ b/csharp/test/Apache.Arrow.IntegrationTest/JsonFile.cs
@@ -67,7 +67,8 @@ public class JsonSchema
///
/// Decode this JSON schema as a Schema instance.
///
- public Schema ToArrow() {
+ public Schema ToArrow()
+ {
return CreateSchema(this);
}
@@ -293,7 +294,8 @@ public class JsonRecordBatch
///
/// Decode this JSON record batch as a RecordBatch instance.
///
- public RecordBatch ToArrow(Schema schema) {
+ public RecordBatch ToArrow(Schema schema)
+ {
return CreateRecordBatch(schema, this);
}