I want to generate aliases for properties in generated code. All I could do so far was:
partial class Purchase
{
public User Customer
{
get
{
return this.User;
}
set
{
this.User = value;
}
}
}
I wonder if there is any other way to define an alias in C#. The Purchase
class was generated by Linq-to-SQL
Customer
both gets and sets the same property and I know that are some obscure C# features and I wondered if any of them could make my code a little less verbose. – Fanciful