System\Data\Common\CommandTrees\DefaultExpressionVisitor.cs (65)
69if (!object.ReferenceEquals(binding.Expression, newInput))
89if (!object.ReferenceEquals(binding.Expression, newInput))
105if (!object.ReferenceEquals(clause.Expression, newExpression))
148if (!object.ReferenceEquals(aggregate.Function, newFunction) ||
149!object.ReferenceEquals(aggregate.Arguments, newArguments))
172if (!object.ReferenceEquals(aggregate.Arguments, newArguments))
188if (!object.ReferenceEquals(varRef.ResultType, newVarType))
202if (!object.ReferenceEquals(lambda.Variables, newFormals) ||
203!object.ReferenceEquals(lambda.Body, newBody))
220if (!object.ReferenceEquals(originalExpression, newExpression))
236!object.ReferenceEquals(list[idx], newElement))
255if (!object.ReferenceEquals(expression.Argument, newArgument))
270if (!object.ReferenceEquals(expression.Argument, newArgument) ||
271!object.ReferenceEquals(type, newType))
285if (!object.ReferenceEquals(expression.Left, newLeft) ||
286!object.ReferenceEquals(expression.Right, newRight))
301if (!object.ReferenceEquals(entityRef.SourceEnd, newSource) ||
302!object.ReferenceEquals(entityRef.TargetEnd, newTarget) ||
303!object.ReferenceEquals(entityRef.TargetEntityReference, newTargetRef))
327if (!object.ReferenceEquals(expression.ResultType, newType))
348!object.ReferenceEquals(from.ResultType.EdmType, to.ResultType.EdmType) ||
428if (!object.ReferenceEquals(expression.Arguments, newArguments) ||
429!object.ReferenceEquals(expression.Function, newFunction))
446if (!object.ReferenceEquals(expression.Arguments, newArguments) ||
447!object.ReferenceEquals(expression.Lambda, newLambda))
461if (!object.ReferenceEquals(expression.Instance, newInstance))
508if (!object.ReferenceEquals(expression.Argument, newArgument) ||
509!object.ReferenceEquals(expression.Pattern, newPattern) ||
510!object.ReferenceEquals(expression.Escape, newEscape))
527if (!object.ReferenceEquals(expression.Argument, newArgument) ||
528!object.ReferenceEquals(expression.Limit, newLimit))
562if (!object.ReferenceEquals(expression.Arguments, newArguments))
710if (!object.ReferenceEquals(expression.When, newWhens) ||
711!object.ReferenceEquals(expression.Then, newThens) ||
712!object.ReferenceEquals(expression.Else, newElse))
741bool unchanged = (object.ReferenceEquals(expression.ResultType, newType) && object.ReferenceEquals(expression.Arguments, newArguments));
746!object.ReferenceEquals(expression.RelatedEntityReferences, newRefs))
773if (!object.ReferenceEquals(expression.Argument, newArgument) ||
774!object.ReferenceEquals(targetType, newType) ||
775!object.ReferenceEquals(expression.EntitySet, newSet))
794if (!object.ReferenceEquals(expression.NavigateFrom, newFrom) ||
795!object.ReferenceEquals(expression.NavigateTo, newTo) ||
796!object.ReferenceEquals(expression.NavigationSource, newNavSource))
832if (!object.ReferenceEquals(expression.Target, newSet))
849if (!object.ReferenceEquals(expression.Input, input) ||
850!object.ReferenceEquals(expression.Predicate, predicate))
867if (!object.ReferenceEquals(expression.Input, input) ||
868!object.ReferenceEquals(expression.Projection, projection))
883if (!object.ReferenceEquals(expression.Inputs, newInputs))
904if (!object.ReferenceEquals(expression.Left, newLeft) ||
905!object.ReferenceEquals(expression.Right, newRight) ||
906!object.ReferenceEquals(expression.JoinCondition, newCondition))
936if (!object.ReferenceEquals(expression.Input, newInput) ||
937!object.ReferenceEquals(expression.Apply, newApply))
967if (!object.ReferenceEquals(expression.Input, newInput) ||
968!object.ReferenceEquals(expression.Keys, newKeys) ||
969!object.ReferenceEquals(expression.Aggregates, newAggs))
994if (!object.ReferenceEquals(expression.Input, newInput) ||
995!object.ReferenceEquals(expression.SortOrder, newSortOrder) ||
996!object.ReferenceEquals(expression.Count, newCount))
1014if (!object.ReferenceEquals(expression.Input, newInput) ||
1015!object.ReferenceEquals(expression.SortOrder, newSortOrder))
1033if (!object.ReferenceEquals(expression.Input, input) ||
1034!object.ReferenceEquals(expression.Predicate, predicate))
System\Data\Mapping\ViewGeneration\Structures\Constant.cs (7)
109if (object.ReferenceEquals(left, right))
186Debug.Assert(Object.ReferenceEquals(this, Instance), "this must be == Instance for NullConstant");
187return Object.ReferenceEquals(this, right);
253Debug.Assert(Object.ReferenceEquals(this, Instance), "this must be == Instance for NullConstant");
254return Object.ReferenceEquals(this, right);
324Debug.Assert(Object.ReferenceEquals(this, Instance), "this must be == Instance for NullConstant");
325return Object.ReferenceEquals(this, right);
System\Data\Objects\EntityEntry.cs (9)
647if (object.ReferenceEquals(current, item))
673bool currentIsKey0 = object.ReferenceEquals(this.EntityKey, current.Key0) ||
674(!object.ReferenceEquals(this.EntityKey, current.Key1) && this.EntityKey.Equals(current.Key0));
675if (Object.ReferenceEquals(item, current))
724Debug.Assert(!Object.ReferenceEquals(this, promotedEntry), "shouldn't be same reference");
1792if (Object.ReferenceEquals(complexObject, oldComplexObject))
1936if (!Object.ReferenceEquals(oldComplexValue, complexValue))
3622(Object.ReferenceEquals(refToDependent.ReferenceValue.Entity, refToPrincipal.WrappedOwner.Entity) ||
3628Object.ReferenceEquals(refToPrincipal.ReferenceValue.Entity, wrappedPrincipal.Entity) ||
System\Data\Objects\Internal\ObjectSpanRewriter.cs (13)
31return object.ReferenceEquals(entityType1, entityType2);
126if (object.ReferenceEquals(_toRewrite, retExpr))
317if (!object.ReferenceEquals(expression.Argument, rewrittenInput))
327if (!object.ReferenceEquals(expression.Argument, rewrittenInput))
377if (!object.ReferenceEquals(spannedColumn, columnExpr))
498if (!object.ReferenceEquals(project.Projection, newProjection))
512if (!object.ReferenceEquals(projection, spannedProjection))
567if (info != null && !object.ReferenceEquals(wasSourceNowTargetEnd, info.SourceEnd))
754if (!object.ReferenceEquals(expression, rewrittenExpression))
818if(!object.ReferenceEquals(found, expression.Input.Expression))
845if (!object.ReferenceEquals(found, expression.Input.Expression))
858if(!object.ReferenceEquals(found, expression.Input.Expression))
871if (!object.ReferenceEquals(found, expression.Input.Expression))
System\ServiceModel\Channels\OverlappedContext.cs (5)
186Fx.Assert(object.ReferenceEquals(this.bufferHolder[0], OverlappedContext.dummyBuffer), "StartAsyncOperation: buffer holder corrupted.");
259Fx.Assert(object.ReferenceEquals(holder, OverlappedContext.dummyBuffer), "StartSyncOperation: buffer holder corrupted.");
312Fx.Assert(object.ReferenceEquals(this.bufferHolder[0], OverlappedContext.dummyBuffer), "Bad holder passed to CancelSyncOperation.");
378Fx.Assert(object.ReferenceEquals(pThis.overlapped, overlapped), "CompleteCallback completed with corrupt OverlappedContext.overlapped.");
379Fx.Assert(object.ReferenceEquals(pThis.rootedHolder, overlapped.AsyncResult), "CompleteCallback completed with corrupt OverlappedContext.rootedHolder.");