With VB...
[tt]
Public Property Get ID() as long
...
End Property
Friend Property Let ID(Byval vData as Long)
...
End Property
[/tt]
Property ID() is public to other projects as read-only; R/W within the project DLL. How do I code this with C#?
(Note: What I'm trying to achieve is to be able to access ID() using the convention obj.ID() whether it be in the project DLL and esp on other projects.)
Played around with internal but no luck. (Though I ended up w/ a "pair" of
[tt]
// exposed to other projects
public int ID
{ get{return m_ID;} }
// visible only in dll project
internal void SetID(int newID)
{ m_ID = newID; }
[/tt]
for immediate remedy. Only if there is a way to make the set statement internal)
Hope I explained well my qry. TIA![[peace] [peace] [peace]](/data/assets/smilies/peace.gif)
[tt]
Public Property Get ID() as long
...
End Property
Friend Property Let ID(Byval vData as Long)
...
End Property
[/tt]
Property ID() is public to other projects as read-only; R/W within the project DLL. How do I code this with C#?
(Note: What I'm trying to achieve is to be able to access ID() using the convention obj.ID() whether it be in the project DLL and esp on other projects.)
Played around with internal but no luck. (Though I ended up w/ a "pair" of
[tt]
// exposed to other projects
public int ID
{ get{return m_ID;} }
// visible only in dll project
internal void SetID(int newID)
{ m_ID = newID; }
[/tt]
for immediate remedy. Only if there is a way to make the set statement internal)
Hope I explained well my qry. TIA
![[peace] [peace] [peace]](/data/assets/smilies/peace.gif)