minus-squaretonur@feddit.dktoProgrammer Humor@lemmy.ml•With PieMixinlinkfedilinkEnglisharrow-up3·1 year agoI have used typeof(T) inside the generic class, so fx a function inside the class Pie where T can be refered. But out of context, if you were to call typeof(T) inside Program.cs’s main function, it would not work. linkfedilink
I have used typeof(T) inside the generic class, so fx a function inside the
class Pie
where T can be refered. But out of context, if you were to call typeof(T) inside Program.cs’s main function, it would not work.