diff --git a/Source/OpenTK/Graphics/ColorFormat.cs b/Source/OpenTK/Graphics/ColorFormat.cs
index 00ef6f59..9298b4e4 100644
--- a/Source/OpenTK/Graphics/ColorFormat.cs
+++ b/Source/OpenTK/Graphics/ColorFormat.cs
@@ -134,11 +134,22 @@ namespace OpenTK.Graphics
#region --- Overrides ---
+ ///
+ /// Indicates whether this instance and a specified object are equal.
+ ///
+ /// Another object to compare to.
+ /// True if this instance is equal to obj; false otherwise.
public override bool Equals(object obj)
{
return (obj is ColorFormat) ? (this == (ColorFormat)obj) : false;
}
+ ///
+ /// Compares two instances for equality.
+ ///
+ /// The left operand.
+ /// The right operand.
+ /// True if both instances are equal; false otherwise.
public static bool operator ==(ColorFormat left, ColorFormat right)
{
if ((object)left == (object)null && (object)right != (object)null ||
@@ -154,11 +165,21 @@ namespace OpenTK.Graphics
left.Alpha == right.Alpha;
}
+ ///
+ /// Compares two instances for inequality.
+ ///
+ /// The left operand.
+ /// The right operand.
+ /// True if both instances are not equal; false otherwise.
public static bool operator !=(ColorFormat left, ColorFormat right)
{
return !(left == right);
}
+ ///
+ /// Returns the hash code for this instance.
+ ///
+ /// A System.Int32 with the hash code of this instance.
public override int GetHashCode()
{
return Red ^ Green ^ Blue ^ Alpha;