Core Serial Library in C#  1.2
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
Reply Class Referenceabstract

An abstract class for replies of all forms to inherit from. More...

Inheritance diagram for Reply:
AsciiReply BinaryReply

Public Member Functions

override bool Equals (object obj)
 Tests the equality of any object against this reply. More...
 
abstract bool Equals (Reply reply)
 Checks to see if this reply is equal to another Reply. More...
 
abstract override int GetHashCode ()
 Returns a hash code based off the reply's attributes. More...
 
abstract override string ToString ()
 Returns a human-readable representation of this reply. More...
 

Public Attributes

byte DeviceAddress
 The address of the device from which the reply came. More...
 

Protected Member Functions

 Reply ()
 Creates a new instance of the Reply class. More...
 

Detailed Description

An abstract class for replies of all forms to inherit from.

Constructor & Destructor Documentation

Reply ( )
inlineprotected

Creates a new instance of the Reply class.

Member Function Documentation

override bool Equals ( object  obj)
inline

Tests the equality of any object against this reply.

Parameters
objThe object to be compared.
Returns
True if the object and this reply are equal, false if they are inequal.
abstract bool Equals ( Reply  reply)
pure virtual

Checks to see if this reply is equal to another Reply.

Parameters
replyThe reply to compare this one to.
Returns
True if the replies are equal, false if inequal.

Implemented in AsciiReply, and BinaryReply.

abstract override int GetHashCode ( )
pure virtual

Returns a hash code based off the reply's attributes.

The hash code returned by this function depends on all of the attributes of the object, including the mutable ones. This means that when using this class in a HashMap or similar structure, it should be considered immutable, or else it will be lost upon being changed.

Returns
The calculated hash code.

Implemented in AsciiReply, and BinaryReply.

abstract override string ToString ( )
pure virtual

Returns a human-readable representation of this reply.

Returns
A string representing the reply.

Implemented in AsciiReply, and BinaryReply.

Member Data Documentation

byte DeviceAddress

The address of the device from which the reply came.


The documentation for this class was generated from the following file: