In C # assembly, I got a function with the DateTime parameter as nullable:
public void DoSomething(DateTime? timestamp);
Now I want to call this method from C ++ / cli:
MyClass->DoSomething(nullptr);
This will not compile. Instead, the C ++ compiler prints an error message. Nullptr cannot be converted to System :: Nullable.
So how do I pass nullptr from C ++ to nullable DateTime?
source
share