I'm looking at a function:
public void foo(int? id) {
...
}
called like:
foo(new int?());
What is happening here? What is the value of id inside the function when it is passed new int?()? It doesn't appear to be anything - the function is using it for a SQL stored procedure, for which I can see in a trace that it is being passed as null. I'm expecting this stored procedure to be called with a definite, actual integer, and I'm wondering why this code might not be specifying one, unless there is something I'm not understanding about this.