I'm currently using Visual Studio (specifically, 2012 Express). I have an interface already defined as follows:
interface IMyInterface
{
public String Data { get; set; }
}
If I have an empty class:
class MyClass : IMyInterface
{
}
And I right-click on the IMyInterface
, I can select "Implement Interface". When I do this, the auto-generated code produces the following:
class MyClass : IMyInterface
{
public string Data
{
get
{
throw new NotImplementedException();
}
set
{
throw new NotImplementedException();
}
}
}
My question is, is there a way that I could have the following auto-generated:
public String Data
Instead of:
public string Data
?
There is no way to do this. It's hard-coded to use the builtin aliases where possible.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With