You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rename property A to B and update it's use in top-level code while not updating C.F.
The property A should be deleted (the getter should throw) but it is not.
Before:
using System;varc=new C();
Console.WriteLine(c.A);
c.F();
Console.WriteLine();classC{publicintA{get;}=1;publicvoidF(){
Console.WriteLine(A);}}
After:
using System;varc=new C();
Console.WriteLine(c.B);// updated use
c.F();
Console.WriteLine();classC{publicintB{get;}=1;// renamedpublicvoidF(){
Console.WriteLine(A);}}
The text was updated successfully, but these errors were encountered:
Rename property
A
toB
and update it's use in top-level code while not updatingC.F
.The property
A
should be deleted (the getter should throw) but it is not.Before:
After:
The text was updated successfully, but these errors were encountered: