/// <summary> /// A shortcut for creating a <code cref="Scope"/> from an <code cref="ObjectContext"/>. /// </summary> internal Scope CreateScope(ObjectContext objContext) { return(new Scope(GetObjectInfo(objContext).Preview, m_handles.Create(objContext))); }
/// <summary> /// <see cref="GetObjectInfo(object, object)"/> /// </summary> private ObjectInfo GetObjectInfo(ObjectContext objectContext) => GetObjectInfo(objectContext.Context, objectContext.Object);