I have a Generic Class in Unity and I want to be able to have an additional variable in it when I use i.e. the type int.
My generic class Grid<int>:
public class Grid<T>
{
    public T[] array;
}
I've tried to extend my generic class Grid<T> with a class named Grid<int> to be able to add the variable there:
public class Grid<int> : Grid<T>
{
    string additionalVariable;
}
But that throws the error
The type or namespace name 'T' could not be found (are you missing a using directive or an assembly reference?)
How can I achieve that creating a new Grid<int> class gives me access to Grid<int>.additionalVariable, but i.e. new Grid<float> wouldn't?
public class IntGrid : Grid<int>Grid<int>that does not exist for, say,Grid<double>.Gridis no longer generic at that point.