ASP.NET: Shadowing Issues
问题 I have two classes in two separate libraries (one VB, one C#): Public Class Item ... Public Overridable ReadOnly Property TotalPrice() As String Get Return FormatCurrency(Price + SelectedOptionsTotal()) End Get End Property End Class and public class DerivedItem : Item { ... public new Decimal TotalPrice { get { return Price + OptionsPrice; } } } As you can see, the DerivedItem.TotalPrice shadows the Item.TotalPrice property. However, when trying to retrieve the DerivedItem.TotalPrice value,