diff --git a/Benchmarks/Benchmarks.csproj b/Benchmarks/Benchmarks.csproj
index 948e2e4e..390dcd26 100644
--- a/Benchmarks/Benchmarks.csproj
+++ b/Benchmarks/Benchmarks.csproj
@@ -1,12 +1,9 @@
-
-
Exe
enable
-
@@ -15,11 +12,9 @@
-
PreserveNewest
-
diff --git a/Benchmarks/ClonerBenchmarks.cs b/Benchmarks/ClonerBenchmarks.cs
index e5eb646b..5e4e8992 100644
--- a/Benchmarks/ClonerBenchmarks.cs
+++ b/Benchmarks/ClonerBenchmarks.cs
@@ -20,9 +20,8 @@ public class ClonerBenchmarks
[GlobalSetup]
public void Setup()
{
- var jsonUtil = new JsonUtil([ new SptJsonConverterRegistrator() ]);
- var importer = new ImporterUtil(new MockLogger(), new FileUtil(),
- jsonUtil);
+ var jsonUtil = new JsonUtil([new SptJsonConverterRegistrator()]);
+ var importer = new ImporterUtil(new MockLogger(), new FileUtil(), jsonUtil);
var loadTask = importer.LoadRecursiveAsync("./Assets/database/templates/");
loadTask.Wait();
_templates = loadTask.Result;
diff --git a/Benchmarks/Mock/MockLogger.cs b/Benchmarks/Mock/MockLogger.cs
index 25a6ee1d..c750857c 100644
--- a/Benchmarks/Mock/MockLogger.cs
+++ b/Benchmarks/Mock/MockLogger.cs
@@ -6,7 +6,12 @@ namespace Benchmarks.Mock;
public class MockLogger : ISptLogger
{
- public void LogWithColor(string data, LogTextColor? textColor = null, LogBackgroundColor? backgroundColor = null, Exception? ex = null)
+ public void LogWithColor(
+ string data,
+ LogTextColor? textColor = null,
+ LogBackgroundColor? backgroundColor = null,
+ Exception? ex = null
+ )
{
throw new NotImplementedException();
}
diff --git a/Build.props b/Build.props
index 8e5e1d26..1817a6a7 100644
--- a/Build.props
+++ b/Build.props
@@ -1,11 +1,9 @@
-
-
- 4.0.0-prerelease2
- net9.0
- latest
- enable
- Git
-
-
+
+ 4.0.0-prerelease2
+ net9.0
+ latest
+ enable
+ Git
+
diff --git a/Libraries/SPTarkov.Common/Extensions/MemberInfoExtensions.cs b/Libraries/SPTarkov.Common/Extensions/MemberInfoExtensions.cs
index 7a70ae8c..eb52bbe4 100644
--- a/Libraries/SPTarkov.Common/Extensions/MemberInfoExtensions.cs
+++ b/Libraries/SPTarkov.Common/Extensions/MemberInfoExtensions.cs
@@ -8,7 +8,10 @@ public static class MemberInfoExtensions
public static string GetJsonName(this MemberInfo memberInfo)
{
return Attribute.IsDefined(memberInfo, typeof(JsonPropertyNameAttribute))
- ? (Attribute.GetCustomAttribute(memberInfo, typeof(JsonPropertyNameAttribute)) as JsonPropertyNameAttribute).Name
+ ? (
+ Attribute.GetCustomAttribute(memberInfo, typeof(JsonPropertyNameAttribute))
+ as JsonPropertyNameAttribute
+ ).Name
: memberInfo.Name;
}
}
diff --git a/Libraries/SPTarkov.Common/Extensions/ObjectExtensions.cs b/Libraries/SPTarkov.Common/Extensions/ObjectExtensions.cs
index 2c75f7cd..33a33af3 100644
--- a/Libraries/SPTarkov.Common/Extensions/ObjectExtensions.cs
+++ b/Libraries/SPTarkov.Common/Extensions/ObjectExtensions.cs
@@ -6,7 +6,8 @@ namespace SPTarkov.Common.Extensions;
public static class ObjectExtensions
{
- private static readonly Dictionary> _indexedProperties = new();
+ private static readonly Dictionary> _indexedProperties =
+ new();
private static readonly Lock _indexedPropertiesLockObject = new();
private static bool TryGetCachedProperty(Type type, string key, out PropertyInfo cachedProperty)
@@ -15,7 +16,8 @@ public static class ObjectExtensions
{
if (!_indexedProperties.TryGetValue(type, out var properties))
{
- properties = type.GetProperties().ToDictionary(prop => prop.GetJsonName(), prop => prop);
+ properties = type.GetProperties()
+ .ToDictionary(prop => prop.GetJsonName(), prop => prop);
_indexedProperties.Add(type, properties);
}
@@ -49,7 +51,7 @@ public static class ObjectExtensions
return default;
}
- return (T?) cachedProperty.GetValue(obj);
+ return (T?)cachedProperty.GetValue(obj);
}
public static List