Closed DenisKudelin closed 6 years ago
C# language change requests are taken at the http://github.com/dotnet/csharplang/ repository now. You'd want to make separate proposals rather than one mega-proposal. Many of these requests have already been made in one form or another, some championed and some already explained why they're not practical.
@DenisKudelin I'll go ahead and close the issue and let you re-open on csharplang. Thanks
object obj = new Foo();
((Foo<,>)obj).Test(); //GenericFoo methods of class Foo<,> should not be available in this case.
Foo<,> foo = (Foo<,>)obj;
((Foo<int,byte>)foo).GenericFoo()
try { Foo(); return true; } catch return false;
try {
} catch(Exception ex) { rethrow ex; // bad example, but it's the same as just "throw;" in this case. }
class Foo { public int Bar => this.bar; private int bar; public int this[string key] => 0;
}