Click or drag to resize

WritableComparableT Class

Abstract base class for classes implementing IWritable that encapsulate a simple existing comparable type.
Inheritance Hierarchy
SystemObject
  Ookii.Jumbo.IOWritableComparableT

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 WritableComparableT type exposes the following members.

Constructors
  NameDescription
Protected methodWritableComparableT
Initializes a new instance of the WritableComparableT 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(WritableComparableT)
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 WritableComparableT.
(Overrides ObjectEquals(Object).)
Public methodEquals(WritableComparableT)
Determines whether the specified WritableComparableT is equal to the current WritableComparableT.
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 ObjectGetHashCode.)
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 WritableComparableT.
(Overrides ObjectToString.)
Public methodWrite
Writes the object to the specified writer.
Top
Operators
  NameDescription
Public operatorStatic memberEquality
Compares two instances of WritableComparableT 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 WritableComparableT 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