diff --git a/Assets/UniGLTF/Runtime/Utils/CachedEnum/CachedEnumType.cs b/Assets/UniGLTF/Runtime/Utils/CachedEnum/CachedEnumType.cs index dc297b3f8..e840e4341 100644 --- a/Assets/UniGLTF/Runtime/Utils/CachedEnum/CachedEnumType.cs +++ b/Assets/UniGLTF/Runtime/Utils/CachedEnum/CachedEnumType.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; + namespace UniGLTF.Utils { /// @@ -14,9 +15,9 @@ namespace UniGLTF.Utils /// internal static class CachedEnumType where T : struct, Enum { - public readonly static Dictionary Map = CreateStringEnumMap(false); - public readonly static Dictionary IgnoreCaseMap = CreateStringEnumMap(true); - public readonly static T[] Values = (T[])Enum.GetValues(typeof(T)); + public static IReadOnlyDictionary Map { get; } = CreateStringEnumMap(false); + public static IReadOnlyDictionary IgnoreCaseMap { get; } = CreateStringEnumMap(true); + public static T[] Values { get; } = (T[])Enum.GetValues(typeof(T)); private static Dictionary CreateStringEnumMap(bool ignoreCase) {