Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Extensions/OtherExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public static string AddSpacesToEnum(this Enum toText)

return newText.ToString();
}

#if !NET10_0_OR_GREATER
/// <summary>
/// Randomly shuffles the elements of an <see cref="IEnumerable{T}"/> using the default random number generator.
/// </summary>
Expand Down Expand Up @@ -93,7 +93,7 @@ private static IEnumerable<T> ShuffleIterator<T>(
buffer[j] = buffer[i];
}
}

#endif
/// <summary>
/// Serializes a collection of Lisbeth <see cref="Order"/> objects into a JSON string.
/// Configured to ignore null and default values and use string representations for enums.
Expand Down
4 changes: 2 additions & 2 deletions Helpers/GeneralFunctions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ public static FrameCachedObject<QuestLayout[]>? QuestLayouts
{
if (_questLayouts == null)
{
var field = typeof(QuestLogManager).GetFields(BindingFlags.NonPublic | BindingFlags.Static).FirstOrDefault(i => i.FieldType == typeof(FrameCachedObject<QuestLayout[]>));
_questLayouts = field?.GetValue(null) as FrameCachedObject<QuestLayout[]>;
var @field = typeof(QuestLogManager).GetFields(BindingFlags.NonPublic | BindingFlags.Static).FirstOrDefault(i => i.FieldType == typeof(FrameCachedObject<QuestLayout[]>));
_questLayouts = @field?.GetValue(null) as FrameCachedObject<QuestLayout[]>;
}

return _questLayouts;
Expand Down