Our great sponsors
-
CoreFX
Discontinued This repo is used for servicing PR's for .NET Core 2.1 and 3.1. Please visit us at https://github.com/dotnet/runtime
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
I would suggest grabbing the source for DynamicObject (https://github.com/dotnet/corefx/blob/master/src/System.Linq.Expressions/src/System/Dynamic/DynamicObject.cs) and basically stealing it's DynamicMetaObject implementation, modifying it to deal with a struct (e.g. you probably need to tweak IsOverridden to deal with seeing if the method is defined on the struct) and remove assumptions it inherits from DynamicObject, and then using that as your implementation if IDMOP.
Related posts
- Can anyone help with this exception i'm getting on entering the astronaut complex?
- Is there a way to check if every value in an array is set to the same value?
- C# Coding Standards
- Is the expandoobject implemented in C# and is it possible to define custom member access operator logic?
- Solution Structure