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

Sealing resolved InjectionMember classes #36

Open
ENikS opened this issue Oct 14, 2020 · 0 comments
Open

Sealing resolved InjectionMember classes #36

ENikS opened this issue Oct 14, 2020 · 0 comments
Assignees

Comments

@ENikS
Copy link
Contributor

ENikS commented Oct 14, 2020

Sealing types

Following classes are being sealed:

  • InjectionField
  • OptionalField
  • InjectionProperty
  • OptionalProperty

The Rationale

With introduction of Injection Reflection resolved injection members, as these above, do not contribute any executable code during runtime. All they do, is provide metadata for the container to resolve values. As result, deriving from these types does not allow any modifications to the resolution process.

To prevent any confusion and incorrect behavior these classes are being sealed.

Derived types

TBD

@ENikS ENikS self-assigned this Oct 14, 2020
@ENikS ENikS transferred this issue from unitycontainer/container Oct 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant