You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am currently having difficulty with a class named View within the global namespace and another class named View in a particular namespace. Unfortunately, the class named View within the namespace uses the class named View in the global namespace, and the only way I can find to make this work at the moment is to create another variable called DataTypeView that is set to the View class in this way:
var DataTypeView = View;
But unfortunately, this doesn't work with generics, i.e. I can't do this:
var myValue = someGenericTypeMethod<DataTypeView>();
DataTypeView does not exist as a type to the intellisense (perhaps this is a bug or maybe I should be doing something else to make this work?).
The text was updated successfully, but these errors were encountered:
I think we need something like
that C# has to access the root namespace.
I am currently having difficulty with a class named View within the global namespace and another class named View in a particular namespace. Unfortunately, the class named View within the namespace uses the class named View in the global namespace, and the only way I can find to make this work at the moment is to create another variable called DataTypeView that is set to the View class in this way:
But unfortunately, this doesn't work with generics, i.e. I can't do this:
DataTypeView does not exist as a type to the intellisense (perhaps this is a bug or maybe I should be doing something else to make this work?).
The text was updated successfully, but these errors were encountered: