You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/MacAddress.rst
+16-10Lines changed: 16 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,11 +11,11 @@ The ``MacAddress`` class implements ``IEquatable<MacAddress>``, ``IComparable<Ma
11
11
12
12
Unless otherwise stated recognized readable MAC Address formats include only the following formats:
13
13
14
-
- **IEEE 802** format for printing **EUI-48** and **MAC-48** addresses in six groups of two hexadecimal digits, separated by a dash (``-``). *E.g.* ``AA-BB-CC-DD-EE-FF``
15
-
- **Common** Six groups of two hexadecimal digits separated by colons (``:``). *E.g.* ``AA:BB:CC:DD:EE:FF``
14
+
- IEEE 802 format for printing **EUI-48** and **MAC-48** addresses in six groups of two hexadecimal digits, separated by a dash (``-``). *E.g.* ``AA-BB-CC-DD-EE-FF``
15
+
- Common Six groups of two hexadecimal digits separated by colons (``:``). *E.g.* ``AA:BB:CC:DD:EE:FF``
16
16
- Six groups of two hexadecimal digits separated by a space character. *E.g.* ``AA BB CC DD EE FF``
17
17
- 12 hexadecimal digits with no delimitation. *E.g.* ``AABBCCDDEEFF``
18
-
- **Cisco** three groups of four hexadecimal digits separated by dots (``.``). *E.g.* ``AABB.CCDD.EEFF``
18
+
- Cisco three groups of four hexadecimal digits separated by dots (``.``). *E.g.* ``AABB.CCDD.EEFF``
19
19
20
20
For the sake of parsing and reading these formats are case insensitive.
21
21
@@ -30,17 +30,23 @@ The ``MacAddress`` class implements ``IEquatable<MacAddress>``, ``IComparable<Ma
30
30
Creation
31
31
--------
32
32
33
-
constructor ``IEnumerable<byte>``
34
-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
33
+
Constructor
34
+
^^^^^^^^^^^
35
+
36
+
``IEnumerable<byte>``
37
+
+++++++++++++++++++++
35
38
36
39
A new ``MacAddress`` may be constructed by providing an ``IEnumerable<byte>`` of six bytes to the constructor.
37
40
38
41
.. code-block:: c#
39
42
40
43
publicMacAddress(IEnumerable<byte>bytes)
41
44
42
-
parse Parse ``string``
43
-
^^^^^^^^^^^^^^^^^^^^^^
45
+
Factory
46
+
^^^^^^^
47
+
48
+
Parse ``string``
49
+
++++++++++++++++
44
50
45
51
A ``MacAddress`` may also be created via either the ``Parse`` or safe ``TryParse`` method. Not that these methods are strict in that they will only succeed with a MAC address in a known format. If you wish to more liberally parse a string into a ``MacAddress`` see the ``ParseAny`` and ``TryParseAny`` defined below.
46
52
@@ -52,8 +58,8 @@ A ``MacAddress`` may also be created via either the ``Parse`` or safe ``TryParse
``ParseAny`` and the safe ``TryParseAny`` allow the parsing of an arbitrary string that may be a Mac address into a ``MacAddress``. It looks for six hexadecimal digits within the string, joins them and interprets the result as consecutive big-endian hextets. If six, and only six, hexadecimal digits are not found the parse will fail.
59
65
@@ -131,7 +137,7 @@ Operators
131
137
132
138
.. rubric:: Footnotes
133
139
134
-
.. [#48-BitMAC] **48-Bit MAC** is a A Media Access Control Address (MAC) following both the now deprecated *MAC-48* and the active *EUI-48* specifications.
140
+
.. [#48-BitMAC] **48-Bit MAC** is a Media Access Control Address (MAC) following both the now deprecated *MAC-48* and the active *EUI-48* specifications.
135
141
136
142
.. [#EUI-48Default] The recommended null or default value for **EUI-48** is ``FF-FF-FF-FF-FF-FF``
0 commit comments