-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Closed
Description
var dog = connection.Query<Dog>("select Age = @Age, Id = @Id", new { Age = (int?)null, Id = guid });
Why do you need to cast null
to (int?)
here?
I can understand the reason for the casting for the below one, but yours.
Main()
{
T.A(null);
}
public class T {
public static void A(string x) => Console.WriteLine("str");
public static void A(List<int> x) => Console.WriteLine("list");
}
Metadata
Metadata
Assignees
Labels
No labels