Skip to content

Commit

Permalink
nameof
Browse files Browse the repository at this point in the history
  • Loading branch information
CptMoore committed Dec 10, 2024
1 parent 7b41dcf commit 1b744aa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ internal static IEnumerable<MethodBase> TargetMethods()
{
var genericMethod = typeof(JSONSerializationUtility)
.GetMethods(BindingFlags.Public|BindingFlags.Static)
.Single(x => x.Name== "FromJSON" && x.GetParameters().Length == 2);
.Single(x => x.Name== nameof(JSONSerializationUtility.FromJSON) && x.GetParameters().Length == 2);
Log.Main.Trace?.Log("JSONSerializationUtility.FromJSON " + genericMethod);

foreach (
Expand Down

0 comments on commit 1b744aa

Please sign in to comment.