Minor Changes to Resolve Warnings #5

Merged
chomp merged 4 commits from warnings into master 2024-11-14 15:03:42 -05:00

4 Commits

Author SHA1 Message Date
29bec68dec
Updates PMCGenerator .NET Target & JSON Package Version
.NET 9
Newtonsoft.Json v13.0.3
2024-11-14 12:48:44 -05:00
f965d476a1
Micro-optimizations to Remove Additional Warnings
- Reduce LINQ overhead by replacing SingleOrDefault and filtering logic with manual iteration.
- Use HashSet and case-insensitive comparisons for faster lookups.

Both of these changes resolve a number of HAA0401 warnings:
Possible allocation of reference type enumerator; non-ValueType enumerator may result in a heap allocation.
2024-11-14 12:38:03 -05:00
3faeb80e55
Resolves Warning HAA0601
Value type to reference type conversion causes boxing at call site, and unboxing at the callee-site. Resolves by explicitly converting value to string before including it in a log message string.
2024-11-14 11:31:22 -05:00
b3c9f5bdd4
Resolves Warning CS0109
A class declaration included the new keyword even though the declaration does not override an existing declaration in a base class. The new keyword can be deleted.
2024-11-14 10:01:55 -05:00