It's quite simple to sort as you you literally just cast the Nothing or null to the type you want it to be processed as. For example:
In C#
public void MyMethod(object1 o) { //Some code... } public void MyMethod(object2 o) { //Some code... } ... MyMethod((object1)null);
In VB.Net
Public Sub MyMethod(o As object1) 'Some code... End Sub Public Sub MyMethod(o As object2) 'Some code... End Sub ... MyMethod(Cast(Nothing, object1))
No comments:
Post a Comment