public static void Save(IStateResourceAccess <TState> stateResourceAccess) { if (stateResourceAccess == null) { throw new ArgumentNullException(nameof(stateResourceAccess)); } AbstractPropertyState <TState, TElement, TProperty> .Persistence.Save(stateResourceAccess); }
internal void Save(IStateResourceAccess <TState> stateResourceAccess) { if (stateResourceAccess == null) { throw new ArgumentNullException(nameof(stateResourceAccess)); } stateResourceAccess.Save(m_State); }
public static void Save(IStateResourceAccess <PersistenceState> stateResourceAccess) { if (stateResourceAccess == null) { throw new ArgumentNullException(nameof(stateResourceAccess)); } GenericPropertyStateHelper <PersistenceState, PersistenceElement, PersistenceProperty> .Save(stateResourceAccess); }
#pragma warning disable CA1000 // Do not declare static members on generic types public static void Load( IStateResourceAccess <TState> stateResourceAccess, Func <DependencyObject, AbstractPropertyState <TState, TElement, TProperty> > addPropertyState) { if (stateResourceAccess == null) { throw new ArgumentNullException(nameof(stateResourceAccess)); } AbstractPropertyState <TState, TElement, TProperty> .Persistence.Load(stateResourceAccess); s_AddPropertyState = addPropertyState ?? throw new ArgumentNullException(nameof(addPropertyState)); }
internal void Load(IStateResourceAccess <TState> stateResourceAccess) { if (stateResourceAccess == null) { throw new ArgumentNullException(nameof(stateResourceAccess)); } try { m_State = stateResourceAccess.Load() ?? new TState(); } finally { InitializeLookupTables(); } }