public NativeSet(Schema.IListType listType, Schema.Sort equalitySort) : base() { _listType = listType; _equalitySort = equalitySort; _equalityComparer = new NativeSetEqualityComparer(this); _elements = new HashSet <object>(_equalityComparer); }
public bool EvaluateEqualitySort(Schema.Sort sort, object indexValue, object compareValue) { // NOTE: Use currently executing program because the whole point is that this is inner loop sort code. // We don't want to have to use a new program, or Program program = _serverProcess.ExecutingProgram; //LProgram.Stack.PushWindow(0); //try //{ program.Stack.Push(indexValue); program.Stack.Push(compareValue); try { return((bool)sort.CompareNode.Execute(program)); } finally { program.Stack.Pop(); program.Stack.Pop(); } //} //finally //{ // LProgram.Stack.PopWindow(); //} }