Namespace Stratara.Shared.Reflections
Classes
- ObjectFactory
Parameterless-constructor instantiation cache. Compiles a
new T()lambda per requested type and reuses it for subsequent calls, avoiding the cost of repeated reflection / activation.
- PropertyAccessor
Reflection-backed value accessor for a single property on a declaring type. Compiles strongly-typed getter / setter delegates via PropertyAccessorCache and exposes them through untyped GetValue(object) / SetValue(object, object?) methods that take any instance of the declaring type as boxed object.
- PropertyAccessorCache
Process-wide cache of compiled property-getter and -setter delegates plus their PropertyInfo. Avoids the per-call overhead of reflection on hot paths such as the merge primitives, event-mapper factory, and aggregate field-change application.
- TypeExtensions
Extension helpers that produce version-independent CLR type-name strings suitable for embedding in persisted events and the outbox. Assembly version / culture / public-key-token segments are trimmed so that an assembly rev-bump does not invalidate previously-stored type names.