固定
Hi @neuecc,
Do you know how to implement GetRef as instance method here:
public interface ITs<T> {
ref T GetRef(int index);
}
public struct Ts<T> : ITs<T> {
public T T0, T1;
public ref T GetRef(int i) {
switch (i) {
case 0: return ref T0; // ERROR CS8170
...
}