I have a generic class:
public Company.DataAccess.Repository<Model>
And I also have a global Usings.cs
file to centralize and DRY my using statements.
Now I want to create an alis for the Repository
. But this line does not work:
global using Repo = Company.DataAccess.Repository;
C# compiler complains that:
error CS0305: Using the generic type 'Repository' requires 1 type arguments
Does this mean that I can't define aliases for my generic types?