Null is an odd data type for me, it seems as though it is wrong to ever use, maybe its the null pointer errors i got so often as a beginner that now have me associating any
It is absolutely fine to pass null to methods. However, if you have a csae where you might not need to pass a variable, consider overloading.
I personally would not use optional parameters - there are many discussions on this very subject because of the issue with the method as Contract which is outside the scope of this question.
Correct way to do it is not to duplicate code but let overloads call each other:
public void Foo(A a)
{
Foo(a, null);
}
public void Foo(A a, B b)
{
// .......
}
This will tell client of this code:
If I have only the second method, the client would not know if it is OK to pass null.