From 49a4e25229392d40d6a16fc02d8d6ad3ec49c877 Mon Sep 17 00:00:00 2001 From: hexawyz <8518235+hexawyz@users.noreply.github.com> Date: Sun, 18 Jan 2026 03:32:05 +0900 Subject: [PATCH] Make Matrix.s_identity readonly. --- .../src/WindowsBase/System/Windows/Media/Matrix.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Media/Matrix.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Media/Matrix.cs index a95e23c2fd3..4fddb34835b 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Media/Matrix.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Media/Matrix.cs @@ -45,7 +45,7 @@ public partial struct Matrix: IFormattable { // the transform is identity by default // Actually fill in the fields - some (internal) code uses the fields directly for perf. - private static Matrix s_identity = CreateIdentity(); + private static readonly Matrix s_identity = CreateIdentity(); #region Constructor