I have a property in a class like:
public int ProductID {get;set;}
Is it possible in .NET to make some 'alias' for this property like to give it another name like 'Product_Id
'?
So later I can set this property by using:
obj.ProductID = 555;
and
obj.Product_Id = 666;
Sure:
public int Product_Id { get { return ProductID; } set { ProductID = value; } }
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