G
Guest
friends,
I have a question about accessing structure members.
I have a structure defined in my dll something like this.
namespace myNamespace
{
internal struct myStruct
{
int myMember1;
string myMember2;
}
}
Because I have declared the struct with scope internal, I
thought the scope of the members also would be internal,
but apparently not. So, I am having to explicitly declare
the structure members also as internal (in order to be
accessible from other .cs files in my assembly?) Is this a
good practice? If not, how do I get over the issue? Thanks
a lot for your help.
I have a question about accessing structure members.
I have a structure defined in my dll something like this.
namespace myNamespace
{
internal struct myStruct
{
int myMember1;
string myMember2;
}
}
Because I have declared the struct with scope internal, I
thought the scope of the members also would be internal,
but apparently not. So, I am having to explicitly declare
the structure members also as internal (in order to be
accessible from other .cs files in my assembly?) Is this a
good practice? If not, how do I get over the issue? Thanks
a lot for your help.