<PackageReference Include="Castle.Core" Version="4.3.0" />

Castle.Components.DictionaryAdapter.OnDemandAttribute

Support for on-demand value resolution.
namespace Castle.Components.DictionaryAdapter { public class OnDemandAttribute : DictionaryBehaviorAttribute, IDictionaryPropertyGetter, IDictionaryBehavior { public Type Type { get; } public object Value { get; } public OnDemandAttribute(); public OnDemandAttribute(Type type); public OnDemandAttribute(object value); public object GetPropertyValue(IDictionaryAdapter dictionaryAdapter, string key, object storedValue, PropertyDescriptor property, bool ifExists); } }