The EthernetAddress type exposes the following members.

Constructors

  NameDescription
EthernetAddressOverloaded.

Methods

  NameDescription
AppendOverloaded.
Clone
Create a new object that is a duplicate of the current object.
(Overrides OctetString..::.Clone()()().)
decode
Decode OctetString from the BER format.
(Inherited from OctetString.)
encode
BER encode OctetString variable.
(Inherited from OctetString.)
Equals
Compare against another object. Acceptable object types are OctetString and String.
(Inherited from OctetString.)
FieldGetter (Inherited from Object.)
FieldSetter (Inherited from Object.)
Finalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
GetFieldInfo (Inherited from Object.)
GetHashCode
Dummy override to prevent compiler warning messages.
(Inherited from OctetString.)
GetType
Gets the Type of the current instance.
(Inherited from Object.)
MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Reset
Reset internal buffer to null.
(Inherited from OctetString.)
SetOverloaded.
ToArray
Convert the OctetString class to a byte array. Internal class data buffer is *copied* and not passed to the caller.
(Inherited from OctetString.)
ToHexString
Return string formatted hexadecimal representation of the objects value.
(Inherited from OctetString.)
ToMACAddressString
Utility function to print a MAC address (binary string of 6 byte length.
(Inherited from OctetString.)
ToString
Return Ethernet MAC address as a string formatted as: xxxx.xxxx.xxxx
(Overrides OctetString..::.ToString()()().)

Fields

  NameDescription
_asnType
ASN.1 type byte.
(Inherited from AsnType.)

Properties

  NameDescription
Item
Indexed access to the OctetString class data members.
CopyC#
OctetString os = new OctetString("test");
for(int i=0;i<=os.Length;i++) {
 Console.WriteLine("{0}",os[i]);
}
(Inherited from OctetString.)
Length
Get length of the internal byte array. 0 if byte array is undefined or zero length.
(Inherited from OctetString.)
Type
Return ASN.1 type of the object stored in this or derived class.
(Inherited from AsnType.)

See Also