Access private member
Basile B. via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Mon Jun 13 00:49:22 PDT 2016
On Monday, 13 June 2016 at 07:43:09 UTC, Pierre wrote:
> Hi,
> I would like to know how can i access private member of class
> from outside ?
> I think about serialization for instance, serializer must have
> access to protected attributes. How this is done ?
> Thank you.
You can perform the introspection in the class itself, e .g in
the __ctor.
More information about the Digitalmars-d-learn
mailing list