System.Data.Entity/System/Data/Common/QueryCache/CompiledQueryCacheEntry.cs
/// <summary>
/// Convenience method to retrieve the result type from the first non-null execution plan found on this cache entry.
/// </summary>
/// <param name="resultType">The result type of any execution plan that is or could be added to this cache entry</param>
/// <returns><c>true</c> if at least one execution plan was present and a result type could be retrieved; otherwise <c>false</c></returns>
Convenience method to retrieve the result type from the first non-null execution plan found on this cache entry.
Convenience method to retrieve the result type from the first non - null execution plan found on this cache entry .
internal bool TryGetResultType(out TypeUsage resultType)
        {
            foreach (var value in _plans.Values)
            {
                resultType = value.ResultType;
                return true;
            }
            resultType = null;
            return false;
        }
internal bool TryGetResultType ( out TypeUsage resultType ) { foreach ( var value in _plans . Values ) { resultType = value . ResultType ; return true ; } resultType = null ; return false ; }
Convenience method to retrieve the result type from the first non-null execution plan found on this cache entry.
Convenience method to retrieve the result type from the first non - null execution plan found on this cache entry .
None
TypeUsage
out
resultType
The result type of any execution plan that is or could be added to this cache entry
The result type of any execution plan that is or could be added to this cache entry