Consider that we have a simple interface such as ICar
when I move mouse over ICar expression and click on Implement Interface
Visual Studio produce below implementation.
Is there any way of providing just an auto property as seen on interface. This cause re-factoring issues and make me crazy each time!
public interface ICar
{
double Power { get; set; }
}
public class Car:ICar
{
public double Power
{
get
{
throw new NotImplementedException();
}
set
{
throw new NotImplementedException();
}
}
}
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…