لدي فئتان "Two Classes"
الاول :-
Dim _ID As String
Dim _Rate As Decimal
Dim _Items As List(Of Item)
Property ID() As Integer
Get
Return _ID
End Get
Set(ByVal value As Integer)
_ID = value
End Set
End Property
Property Rate() As Decimal
Get
Return _Rate
End Get
Set(ByVal value As Decimal)
_Rate = value
End Set
End Property
Property Items() As List(Of Item)
Get
Return _Items
End Get
Set(ByVal value As List(Of Item))
_Items = value
End Set
End Property
End Class
Public Class HeaderInvoice
الثانــي :-
Dim _Id As Integer
Dim _Price As Decimal
Property ID() As Integer
Get
Return _Id
End Get
Set(ByVal value As Integer)
_Id = value
End Set
End Property
Property Price() As String
Get
Return _Price
End Get
Set(ByVal value As String)
_Price = value
End Set
End Property
ReadOnly Property LocalPrice() As Decimal
Get
***********
End Get
End Property
End Class
Public Class Item
السؤال.............
لحساب قيمة الخاصية "LocalPrice" اريد الوصول الى الخاصية "Rate" الموجودة في الفئة "HeaderInvoice"
ولكم جزيل الشكر مسبقاً على مجهودات المنتدى الجبارة
ملاحظة لإدارة المنتدى :- من كثرة الاسئلة والمشاركات والمواضيع اعتقد انها تحتاج الى ترتيب لكي يسهل على الاعضاء تتبع كل المشاركات لدي اقتراح ماذا لو تم اعادة ترتيب المنتدي بحيث نأخذ افكار موقع www.codeproject.com فطريقتهم في طرح الاسئلة والاجابات والمقالات رائعة وهذه ليست دعاية للموقع فاعتقد انه لايوجد احد لايعرف هذا الموقع


