Is there anyway to specify access to a property only from within itself (Friend) and also only from AnotherDll.dll?
I would rather not have the property public, as it should not be used by all.
Thanks.
Printable View
Is there anyway to specify access to a property only from within itself (Friend) and also only from AnotherDll.dll?
I would rather not have the property public, as it should not be used by all.
Thanks.
I don't think so... other than passing a custom security struct... in which the property checks the value... and would refuse to set the private member if the securityvalue wasn't right....
I assume the dll is one you don't have the source code to...?
If the second one inherits the first you can use Protected, otherwise I don't think so.
Well...
Constructors can do much similar way as Properties . ;)