{
object o = base; /* error CS0175: Use of keyword 'base' is not valid in this context */
return o.ToString();
}
}
Description
...because it cannot be used as an expression.
class A
{
public override string ToString()
{
return base.ToString();
}
}
Select 'base' and apply 'introduce variable'.
class A
{
public override string ToString()
{
object o = base; /* error CS0175: Use of keyword 'base' is not valid in this context */
return o.ToString();
}
}