Mmd
Mmd
CC#
Created by Mmd on 8/8/2023 in #help
❔ giving current class type to a generic class
hmm aight thanks
9 replies
CC#
Created by Mmd on 8/8/2023 in #help
❔ giving current class type to a generic class
and thanks
9 replies
CC#
Created by Mmd on 8/8/2023 in #help
❔ giving current class type to a generic class
damn so how can i use non static fields in that class
9 replies
CC#
Created by Mmd on 8/8/2023 in #help
❔ giving current class type to a generic class
public abstract class Spell<T> where T : Legend.Legend
public abstract class Spell<T> where T : Legend.Legend
this is Spell class
public class TestSpell : Spell<TestLegend>
public class TestSpell : Spell<TestLegend>
and this is TestSpell class what im trying to do is
new Spell<Legend>[]{new TestSpell()}
new Spell<Legend>[]{new TestSpell()}
which throws an error
9 replies