Comments (2)
Yeah I think it's possible, for the explicit generic argument ActLike.
As making the proxies is trivial source wise.
just an object implementing an interface where each method is just forwarding the call to a dynamic typed _target.
Just have to identify each place you use it.
from impromptu-interface.
What if a method is not implemented in the target class. In that case, ActLike can compile and run as long as you don't call it. But the source generator won't compile and you need to have an exact match?
from impromptu-interface.
Related Issues (20)
- Interface with different interface collection as property
- Feature Request: ActLike<BaseClass>
- [macOS] The type initializer for 'Dynamitey.Dynamic' threw an exception HOT 6
- FeatureRequest, ActLike with possibility to map method names HOT 1
- Have proxy check if wrapping the same interface
- Define proxy methods for out / ref parameters HOT 2
- How to work with enum parameters and return values HOT 2
- lock and Dictionary HOT 3
- ActLike() fails with explicit interface implementation HOT 2
- RuntimeBinderException trying to set a property after Activator.CreateInstance HOT 1
- feature: ActLike convert tuple HOT 2
- Incorrect binder.ReturnType HOT 1
- ActLike interface with default implementation produces exception
- Exception Thrown on Blazor WASM HOT 2
- Issue Loading Type Dynamically HOT 2
- Updating ImpromptuInterface from 6.2.2 to 7.0.1 (latest version) HOT 2
- Hosting on serveless environments HOT 1
- Build not passing + Proxy interfaces missing Custom Attributes HOT 1
- Failure when using generic structs in nullable contexts
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 impromptu-interface.