The EthernetAddress type exposes the following members.

Methods

  NameDescription
Public methodAppend(array<Byte>[]()[][])
Append contents of the byte array to the class value. If class value is length 0, byte array content is set as the class value.
(Inherited from OctetString.)
Public methodAppend(String)
Append string value to the OctetString class. If current class content is length 0, new string value is set as the value of this class. Class assumes that string value is UTF8 encoded.
(Inherited from OctetString.)
Public methodClear
Empty data buffer
(Inherited from OctetString.)
Public methodClone
Create a new object that is a duplicate of the current object.
(Overrides OctetString..::..Clone()()()().)
Public methodCompareTo(array<Byte>[]()[][])
IComparable interface implementation. Compare class contents with contents of the byte array.
(Inherited from OctetString.)
Public methodCompareTo(OctetString)
IComparable interface implementation. Compare class contents against another class.
(Inherited from OctetString.)
Public methoddecode
Decode OctetString from the BER format.
(Inherited from OctetString.)
Public methodencode
BER encode OctetString variable.
(Inherited from OctetString.)
Public methodEquals
Compare against another object. Acceptable object types are OctetString and String.
(Inherited from OctetString.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetEnumerator
Returns an enumerator that iterates through the OctetString byte collection
(Inherited from OctetString.)
Public methodGetHashCode
Dummy override to prevent compiler warning messages.
(Inherited from OctetString.)
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 methodReset
Reset internal buffer to null.
(Inherited from OctetString.)
Public methodSet(String)
Parses hex string representing an Ethernet MAC address to the enternal format. Ethernet address has to contain 12 hex characters (1-9 or A-F) to be parsed correctly. Special formatting is ignored so both 0000.0010.0000 and 00-00-00-10-00-00 will be parsed ok.
(Overrides OctetString..::..Set(String).)
Public methodSet(Byte)
Set class value to an array 1 byte long and set the value to the supplied argument.
(Inherited from OctetString.)
Public methodSet(array<Byte>[]()[][])
Set class value from the argument byte array. If byte array argument is null or length == 0, internal OctetString buffer is set to null.
(Inherited from OctetString.)
Public methodSet(Int32, Byte)
Set value at specified position to the supplied value
(Inherited from OctetString.)
Public methodSetRef
Set class value to reference of parameter byte array
(Inherited from OctetString.)
Public methodToArray
Convert the OctetString class to a byte array. Internal class data buffer is *copied* and not passed to the caller.
(Inherited from OctetString.)
Public methodToHexString
Return string formatted hexadecimal representation of the objects value.
(Inherited from OctetString.)
Public methodToMACAddressString
Utility function to print a MAC address (binary string of 6 byte length.
(Inherited from OctetString.)
Public methodToString
Return Ethernet MAC address as a string formatted as: xxxx.xxxx.xxxx
(Overrides OctetString..::..ToString()()()().)

Explicit Interface Implementations

  NameDescription
Explicit interface implemetationPrivate methodIEnumerable..::..GetEnumerator
Returns an enumerator that iterates through the OctetString byte collection
(Inherited from OctetString.)

See Also