private static void Set <T>(this DataTemplate dataTemplate, T value, [CallerMemberName] string callerName = default !) { var key = GetKey(callerName); dataTemplate.Extendable().Set(value, key); }
private static T Get <T>(this DataTemplate dataTemplate, Func <T>?createValue = null, [CallerMemberName] string callerName = default !) { var key = GetKey(callerName); return(dataTemplate.Extendable().Get(createValue, key)); }