Skip to content

Commit

Permalink
Fix MA0003
Browse files Browse the repository at this point in the history
  • Loading branch information
Vectron committed Nov 15, 2024
1 parent c690d81 commit 558277f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ public void CleanDynamicConvertsStructTypeToExpando()
// Assert
Assert.AreEqual(255, expando.Property1);
Assert.AreEqual("test", expando.Property2);
Assert.AreEqual(false, expando.Property3);
Assert.AreEqual(expected: false, actual: expando.Property3);
Assert.AreEqual(10L, expando.Property4);
Assert.IsNull(expando.Property5);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ private static object GetDynamicValue(dynamic o, string name)
return expando[name];
}

var arguments = new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) };
var binder = Microsoft.CSharp.RuntimeBinder.Binder.GetMember(CSharpBinderFlags.None, name, null, arguments);
var arguments = new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, name: null) };
var binder = Microsoft.CSharp.RuntimeBinder.Binder.GetMember(CSharpBinderFlags.None, name, context: null, arguments);
var site = CallSite<Func<CallSite, object, object>>.Create(binder);
return site.Target(site, o);
}
Expand Down

0 comments on commit 558277f

Please sign in to comment.