Comments (2)
The same is possible for parameter injection.
I don't understand this bit. What is parameter injection if it isn't involving an importing constructor?
Another variant on this would be an importing property and an equivalent importing constructor parameter, or just two equivalent importing properties.
from vs-mef.
Strictly speaking, an exporting member may produce unique values each time it is pulled from, so two "identical" imports may in fact be valuable to the consumer in getting two unique instances. However this is by far a very niche case, so an analyzer to catch what would commonly be a (minor) bug or at least a cosmetic anomaly may be useful.
My sense though is this is a low priority as it seems unlikely to result in a bug.
from vs-mef.
Related Issues (20)
- GC pressure in CompositionConfiguration even when loading from cache HOT 6
- Consider adding AllowRejection to formalize rejection HOT 5
- Types containing naked type parameters as elements in a base class incorrectly fail discovery HOT 2
- Consider adding a test helper library
- Publish Updated NuGet Package HOT 1
- CompositionFailedException is not serializable
- LazyMetadataWrapper not super performant HOT 2
- Composition Analyzer package does not install when using packages.config HOT 2
- Install of latest alpha 16.9.6 fails for .NET-Framework 4.7.2 HOT 1
- Analyzers assembly needs to increment version in every NuGet package
- Lots of (most likely duplicate) assemblyname instances HOT 4
- RuntimePartLifecycleTracker.CreateValue picks wrong ImportingConstructor with generic type argument in signature
- Add analyzer to detect when a class has more than one `ImportingConstructor` attribute HOT 1
- Analyzer to ensure correct C# nullable annotation when AllowDefault = true HOT 1
- Allow C# records to be used as metadata views HOT 1
- Equivalent SatisfyImportsOnce HOT 3
- Expose assembly name that provides exported part HOT 4
- StandardAssemblyLoader.LoadAssembly does not respect codeBasePath on .NET Core HOT 2
- Support generic imports (GenericHost/Options DI) HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vs-mef.