Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

ObjectUtils.NullSafeEquals Method

Determine if the given objects are equal, returning true if both are a null reference (Nothing in Visual Basic) respectively false if only one is a null reference (Nothing in Visual Basic).

[Visual Basic]
Public Shared Sub NullSafeEquals( _
   ByVal o1 As Object, _
   ByVal o2 As Object _
)
[C#]
public static bool NullSafeEquals(
   object o1,
   object o2
);

Parameters

o1
The first object to compare.
o2
The second object to compare.

Return Value

true if the given objects are equal.

See Also

ObjectUtils Class | Spring.Util Namespace