using System.Collections.Generic;
public T this[string index] => default;
public T? this[string index] => default;
public string this[string index] => index;
public string? this[string index] => index;
public int this[string index] => 0;
public int? this[string index] => null;
public Tuple<object, object> this[string index] => default;
public Tuple<object, object>? this[string index] => null;
public static void Main()
new TestGNN<Tuple<object, object>>(),
new TestGNN<Tuple<object, object>?>(),
new TestGN<Tuple<object, object>>(),
new TestGN<Tuple<object, object>?>(),
NullabilityInfoContext context = new();
foreach (var p in t.GetProperties(BindingFlags.Public | BindingFlags.Instance))
var info = context.Create(p);
Console.WriteLine($"{c}: {info.ReadState}");