Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Proposal]: Start to support private fields/properties #25

Open
alexinea opened this issue Jun 8, 2022 · 0 comments
Open

[Proposal]: Start to support private fields/properties #25

alexinea opened this issue Jun 8, 2022 · 0 comments
Labels

Comments

@alexinea
Copy link
Collaborator

alexinea commented Jun 8, 2022

In earlier versions of Leo, we supported private properties or fields. But starting from the current version, Leo will no longer support access to private properties or fields by default.

For this, we will try several situations to provide users with the convenience of reading and writing private properties or fields.

Now use the following extension methods to support reading and writing of private fields or properties:

type.AllowLeoPrivate();

This method is temporary, as we will implement it in a more elegant and flexible way in the next version or some future version.

https://github.com/night-moon-studio/Leo/blob/master/test/NCallerUT/DictNormalTest.cs#L40

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant