Click or drag to resize

WritableComparable<T> Class

Abstract base class for classes implementing IWritable that encapsulate a simple existing comparable type.
Inheritance Hierarchy
System.Object
  Ookii.Jumbo.IO.WritableComparable<T>

Namespace:  Ookii.Jumbo.IO
Assembly:  Ookii.Jumbo (in Ookii.Jumbo.dll) Version: 2.0.0
Syntax
public abstract class WritableComparable<T> : IWritable, 
	IComparable<WritableComparable<T>>, IComparable, IEquatable<WritableComparable<T>>

Type Parameters

T
The underlying type of the writable.

The WritableComparable<T> type exposes the following members.

Constructors
  NameDescription
Protected methodWritableComparable<T>
Initializes a new instance of the WritableComparable<T> class
Top
Properties
  NameDescription
Protected propertyComparer
Gets a comparer to use to compare the values.
Public propertyValue
Gets or sets the underlying string value.
Top
Methods
  NameDescription
Public methodCompareTo(Object)
Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
Public methodCompareTo(WritableComparable<T>)
Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
Public methodEquals(Object)
Determines whether the specified Object is equal to the current WritableComparable<T>.
(Overrides Object.Equals(Object).)
Public methodEquals(WritableComparable<T>)
Determines whether the specified WritableComparable<T> is equal to the current WritableComparable<T>.
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Overrides Object.GetHashCode().)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRead
Reads the object from the specified reader.
Public methodToString
Returns a string representation of this WritableComparable<T>.
(Overrides Object.ToString().)
Public methodWrite
Writes the object to the specified writer.
Top
Operators
  NameDescription
Public operatorStatic memberEquality
Compares two instances of WritableComparable<T> for equality.
Public operatorStatic memberGreaterThan
Checks if the first operand sorts after the right operand.
Public operatorStatic memberGreaterThanOrEqual
Checks if the first operand sorts after or equal to the right operand.
Public operatorStatic memberInequality
Compares two instances of WritableComparable<T> for inequality.
Public operatorStatic memberLessThan
Checks if the first operand sorts before the right operand.
Public operatorStatic memberLessThanOrEqual
Checks if the first operand sorts before or equal to the right operand.
Top
See Also