Expand|Select|Wrap|Line Numbers
- public static NDIS_802_3_ADDRESS StrToByteArray(string str)
- {
- ASCIIEncoding encoding = new ASCIIEncoding();
- byte[] m = encoding.GetBytes(str);
- NDIS_802_3_ADDRESS mac = new NDIS_802_3_ADDRESS(m);
- return mac;
- }
U use these method in order to change string to mac address, however the output of that is fixed value 30-30-2D-32-31-2D, whatever the input string
any ideas