src/Shared/EntityFramework/Core/Objects/Internal/ObjectQueryState.cs
// <summary>
// Helper method used to create an ObjectQuery based on an underlying ObjectQueryState instance.
// This method must be public to be reliably callable from <see cref="CreateObjectQuery" /> using reflection.
// Shouldn't be named CreateQuery to avoid ambiguity with reflection.
// </summary>
// <typeparam name="TResultType"> The required element type of the new ObjectQuery </typeparam>
// <returns> A new ObjectQuery based on the specified query state, with the specified element type </returns>
Helper method used to create an ObjectQuery based on an underlying ObjectQueryState instance.
This method must be public to be reliably callable from  using reflection.
Shouldn't be named CreateQuery to avoid ambiguity with reflection.
Helper method used to create an ObjectQuery based on an underlying ObjectQueryState instance . This method must be public to be reliably callable from using reflection . Shouldn ' t be named CreateQuery to avoid ambiguity with reflection .
public ObjectQuery<TResultType> CreateObjectQuery<TResultType>()
        {
            Debug.Assert(typeof(TResultType) == ElementType, "Element type mismatch");
            return new ObjectQuery<TResultType>(this);
        }
public ObjectQuery < TResultType > CreateObjectQuery < TResultType > ( ) { Debug . Assert ( typeof ( TResultType ) == ElementType , " " ) ; return new ObjectQuery < TResultType > ( this ) ; }
Helper method used to create an ObjectQuery based on an underlying ObjectQueryState instance.
Helper method used to create an ObjectQuery based on an underlying ObjectQueryState instance .
A new ObjectQuery based on the specified query state, with the specified element type
A new ObjectQuery based on the specified query state with the specified element type
typeparam
The required element type of the new ObjectQuery
The required element type of the new ObjectQuery