Update of /cvsroot/nullabletypes/NullableTypes/src/Types
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16569/src/Types
Modified Files:
NullableGuid.cs NullableTimeSpan.cs
Log Message:
Add missing NotEquals methods.
Index: NullableGuid.cs
===================================================================
RCS file: /cvsroot/nullabletypes/NullableTypes/src/Types/NullableGuid.cs,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** NullableGuid.cs 11 Oct 2005 09:55:44 -0000 1.7
--- NullableGuid.cs 24 Oct 2005 21:28:57 -0000 1.8
***************
*** 199,202 ****
--- 199,223 ----
}
+ /// <summary>
+ /// Compares two <see cref="NullableGuid"/> instances to determine if
+ /// they are not equivalent.
+ /// </summary>
+ /// <param name="g1">A <see cref="NullableGuid"/> structure.</param>
+ /// <param name="g2">A <see cref="NullableGuid"/> structure.</param>
+ /// <returns>
+ /// A <see cref="NullableBoolean"/> that is
+ /// <see cref="NullableBoolean.False"/> if the two instances are equivalent
+ /// or <see cref="NullableBoolean.True"/> if the two instances are not
+ /// equivalent. If either instance of <see cref="NullableGuid"/> is
+ /// <see cref="Null"/>, the <see cref="NullableBoolean.Value"/> of the
+ /// <see cref="NullableBoolean"/> will be <see cref="NullableBoolean.Null"/>.
+ /// </returns>
+ public static NullableBoolean NotEquals(NullableGuid g1, NullableGuid g2) {
+ if (g1.IsNull || g2.IsNull)
+ return NullableBoolean.Null;
+
+ return new NullableBoolean(g1._value != g2._value);
+ }
+
#endregion // Equivalence
Index: NullableTimeSpan.cs
===================================================================
RCS file: /cvsroot/nullabletypes/NullableTypes/src/Types/NullableTimeSpan.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** NullableTimeSpan.cs 11 Oct 2005 09:25:33 -0000 1.2
--- NullableTimeSpan.cs 24 Oct 2005 21:28:57 -0000 1.3
***************
*** 220,227 ****
/// <see cref="NullableBoolean.True"/> if the values of <paramref name="t1"/> and <paramref name="t2"/> are equal,
/// <see cref="NullableBoolean.False"/> if the values of <paramref name="t1"/> and <paramref name="t2"/> are not equal.
! public static NullableBoolean Equals(NullableTimeSpan t1, NullableTimeSpan t2) {
return (t1 == t2);
}
#endregion // Equivalence
--- 220,249 ----
/// <see cref="NullableBoolean.True"/> if the values of <paramref name="t1"/> and <paramref name="t2"/> are equal,
/// <see cref="NullableBoolean.False"/> if the values of <paramref name="t1"/> and <paramref name="t2"/> are not equal.
! public static NullableBoolean Equals(NullableTimeSpan t1, NullableTimeSpan t2) {
return (t1 == t2);
}
+ /// <summary>
+ /// Compares two <see cref="NullableTimeSpan"/> structures to determine if
+ /// they are not equivalent.
+ /// </summary>
+ /// <param name="t1">A <see cref="NullableTimeSpan"/> structure.</param>
+ /// <param name="t2">A <see cref="NullableTimeSpan"/> structure.</param>
+ /// <returns>
+ /// A <see cref="NullableBoolean"/> that is
+ /// <see cref="NullableBoolean.False"/> if the two instances are equivalent
+ /// or <see cref="NullableBoolean.True"/> if the two instances are not
+ /// equivalent. If either instance of <see cref="NullableTimeSpan"/> is
+ /// <see cref="Null"/>, the <see cref="NullableBoolean.Value"/> of the
+ /// <see cref="NullableBoolean"/> will be <see cref="NullableBoolean.Null"/>.
+ /// </returns>
+ public static NullableBoolean NotEquals(NullableTimeSpan g1, NullableTimeSpan g2)
+ {
+ if (g1.IsNull || g2.IsNull)
+ return NullableBoolean.Null;
+
+ return new NullableBoolean(g1._value != g2._value);
+ }
+
#endregion // Equivalence
|