Public Class Order Private _color As String Public Property color() As String Get Return _color End Get Set(ByVal value As String) _color = value End Set End Property
Class File 2--------------------------------------
Private _Order As Order() Public Property Order() As Order() Get Return _Order End Get Set(ByVal value As Order()) _Order = value End Set End Property
shahas_sss
Member
176 Points
183 Posts
access property in a class
Aug 27, 2011 09:48 AM|LINK
konanki
Contributor
6198 Points
1239 Posts
Re: access property in a class
Aug 27, 2011 09:55 AM|LINK
send full code, we can able to see only property
shahas_sss
Member
176 Points
183 Posts
Re: access property in a class
Aug 27, 2011 10:02 AM|LINK
vmillasp
Member
626 Points
154 Posts
Re: access property in a class
Aug 27, 2011 10:25 PM|LINK
first use a bit different names
that is a bit confusing ...
and then try again what you where trying, hopefully will work
Damon Liu - ...
Contributor
5920 Points
535 Posts
Microsoft
Re: access property in a class
Sep 02, 2011 02:36 AM|LINK
Hi:
I suppose the class file1 and class file2 are in the same namespace. Or you should reference the namespace of file1.
You can make the class in file2 inherit of the Order. You must instantiate the class Custom then you can access the color now.
I think the class in file2 may have another name.
Public Class Order
Private _color As String
Public Property color() As String
Get
Return _color
End Get
Set(ByVal value As String)
_color = value
End Set
End Property
End Class
Public Class Custom
Inherits Order
Private _custom As String
Public Property Customer() As String
Get
Return _custom
End Get
Set(ByVal value As String)
_custom = value
End Set
End Property
End Class
Best Regards,
Damon
If you have any feedback about my replies, please contact msdnmg@microsoft.com
Microsoft One Code Framework