/// <summary>
        ///     Gets the groupAggregateVarRefInfo representing the definition of the given property of the given
        ///     var over a group aggregate var if any.
        /// </summary>
        internal bool TryGetReferencedGroupAggregateVarInfo(
            Var var, EdmMember property, out GroupAggregateVarRefInfo groupAggregateVarRefInfo)
        {
            if (property == null)
            {
                return(TryGetReferencedGroupAggregateVarInfo(var, out groupAggregateVarRefInfo));
            }

            Dictionary <EdmMember, GroupAggregateVarRefInfo> varPropertyDictionary;

            if (_groupAggregateVarRelatedVarPropertyToInfo == null ||
                !_groupAggregateVarRelatedVarPropertyToInfo.TryGetValue(var, out varPropertyDictionary))
            {
                groupAggregateVarRefInfo = null;
                return(false);
            }
            return(varPropertyDictionary.TryGetValue(property, out groupAggregateVarRefInfo));
        }
Esempio n. 2
0
        internal bool TryGetReferencedGroupAggregateVarInfo(
            Var var,
            EdmMember property,
            out GroupAggregateVarRefInfo groupAggregateVarRefInfo)
        {
            if (property == null)
            {
                return(this.TryGetReferencedGroupAggregateVarInfo(var, out groupAggregateVarRefInfo));
            }
            Dictionary <EdmMember, GroupAggregateVarRefInfo> dictionary;

            if (this._groupAggregateVarRelatedVarPropertyToInfo != null && this._groupAggregateVarRelatedVarPropertyToInfo.TryGetValue(var, out dictionary))
            {
                return(dictionary.TryGetValue(property, out groupAggregateVarRefInfo));
            }
            groupAggregateVarRefInfo = (GroupAggregateVarRefInfo)null;
            return(false);
        }
 /// <summary>
 ///     Gets the groupAggregateVarRefInfo representing the definition of the given var over
 ///     a group aggregate var if any.
 /// </summary>
 internal bool TryGetReferencedGroupAggregateVarInfo(Var var, out GroupAggregateVarRefInfo groupAggregateVarRefInfo)
 {
     return(_groupAggregateVarRelatedVarToInfo.TryGetValue(var, out groupAggregateVarRefInfo));
 }
        // <summary>
        // Gets the groupAggregateVarRefInfo representing the definition of the given property of the given
        // var over a group aggregate var if any.
        // </summary>
        internal bool TryGetReferencedGroupAggregateVarInfo(
            Var var, EdmMember property, out GroupAggregateVarRefInfo groupAggregateVarRefInfo)
        {
            if (property == null)
            {
                return TryGetReferencedGroupAggregateVarInfo(var, out groupAggregateVarRefInfo);
            }

            Dictionary<EdmMember, GroupAggregateVarRefInfo> varPropertyDictionary;
            if (_groupAggregateVarRelatedVarPropertyToInfo == null
                || !_groupAggregateVarRelatedVarPropertyToInfo.TryGetValue(var, out varPropertyDictionary))
            {
                groupAggregateVarRefInfo = null;
                return false;
            }
            return varPropertyDictionary.TryGetValue(property, out groupAggregateVarRefInfo);
        }
 // <summary>
 // Gets the groupAggregateVarRefInfo representing the definition of the given var over
 // a group aggregate var if any.
 // </summary>
 internal bool TryGetReferencedGroupAggregateVarInfo(Var var, out GroupAggregateVarRefInfo groupAggregateVarRefInfo)
 {
     return _groupAggregateVarRelatedVarToInfo.TryGetValue(var, out groupAggregateVarRefInfo);
 }