public void CacheDependent(IDependentObject obj) { if (obj is null) { throw new ArgumentNullException(nameof(obj)); } _cache.CacheDependent(obj); }
public void CacheDependent(IDependentObject component) { if (component is null) { throw new ArgumentNullException(nameof(component)); } CacheAs(component, component.GetType()); }
private static bool CanExtractBaseFromDependent([NotNull] IDependentObject dependentObject, out IBaseObject baseObject) { if (dependentObject.Initialized) { baseObject = dependentObject.Base; return(true); } baseObject = default; return(false); }
public void CacheDependent(IDependentObject obj) { throw new NotImplementedException(); }