I am trying to declare an equivalent of this code in c#:
public T FieldValueOrDefault<T>(int columnIndex);
I am using managed C++ Visual Studio 2015. If it matters, Target Platform Version is set to 8.1 and CLR Support set to /clr. When I enter something like this:
generic<typename T>
T FieldValueOrDefault<T>(String^ columnName);
I get a compiler error "Error C2768 FieldValueOrDefault': illegal use of explicit template arguments"
Please let me know what is a correct way to declare such thing.