Beispiel #1
0
 /// <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)));
 }
Beispiel #2
0
 /// <summary>
 ///     <see cref="GetObjectInfo(object, object)"/>
 /// </summary>
 private ObjectInfo GetObjectInfo(ObjectContext objectContext) => GetObjectInfo(objectContext.Context, objectContext.Object);