예제 #1
0
 public bool IsCachedObject(MetaType type, object instance)
 {
     if (type == null)
     {
         throw Error.ArgumentNull("type");
     }
     if (!type.IsEntity)
     {
         return(false);
     }
     return(IdentityManager.FindLike(type, instance) == instance);
 }
예제 #2
0
 internal object GetCachedObjectLike(MetaType type, object instance)
 {
     if (type == null)
     {
         throw Error.ArgumentNull("type");
     }
     if (!type.IsEntity)
     {
         return(null);
     }
     return(IdentityManager.FindLike(type, instance));
 }