private static void AddNonAggregatedProps( ExprNodePropOrStreamSet nonAggProps, IList<ExprNodePropOrStreamDesc> refs, EventType[] types, ContextPropertyRegistry contextPropertyRegistry) { foreach (ExprNodePropOrStreamDesc pair in refs) { if (pair is ExprNodePropOrStreamPropDesc) { ExprNodePropOrStreamPropDesc propDesc = (ExprNodePropOrStreamPropDesc) pair; EventType originType = types.Length > pair.StreamNum ? types[pair.StreamNum] : null; if (originType == null || contextPropertyRegistry == null || !contextPropertyRegistry.IsPartitionProperty(originType, propDesc.PropertyName)) { nonAggProps.Add(pair); } } else { nonAggProps.Add(pair); } } }
protected bool Equals(ExprNodePropOrStreamPropDesc other) { return StreamNum == other.StreamNum && string.Equals(PropertyName, other.PropertyName); }