You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The existing behavior of reflection's GetDeclaredMethod is that if multiple methods are found, an exception is thrown.
One impact this will have is on [DynamicData(nameof(MyMethod), DynamicDataSourceType.Method]
If MyMethod has multiple overloads, we would throw an exception when using reflection, but the behavior is kinda undefined when using source generator. It depends on which overload is returned (current impl uses FirstOrDefault).
The text was updated successfully, but these errors were encountered:
The existing behavior of reflection's GetDeclaredMethod is that if multiple methods are found, an exception is thrown.
One impact this will have is on
[DynamicData(nameof(MyMethod), DynamicDataSourceType.Method]
If MyMethod has multiple overloads, we would throw an exception when using reflection, but the behavior is kinda undefined when using source generator. It depends on which overload is returned (current impl uses FirstOrDefault).
The text was updated successfully, but these errors were encountered: