コード例 #1
0
 public void CacheDependent(IDependentObject obj)
 {
     if (obj is null)
     {
         throw new ArgumentNullException(nameof(obj));
     }
     _cache.CacheDependent(obj);
 }
コード例 #2
0
        public void CacheDependent(IDependentObject component)
        {
            if (component is null)
            {
                throw new ArgumentNullException(nameof(component));
            }

            CacheAs(component, component.GetType());
        }
コード例 #3
0
        private static bool CanExtractBaseFromDependent([NotNull] IDependentObject dependentObject, out IBaseObject baseObject)
        {
            if (dependentObject.Initialized)
            {
                baseObject = dependentObject.Base;
                return(true);
            }

            baseObject = default;
            return(false);
        }
コード例 #4
0
 public void CacheDependent(IDependentObject obj)
 {
     throw new NotImplementedException();
 }