// Collection of code snippets by Arne Vajhøj // (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) using System; using System.Linq; using System.Globalization; namespace E { public class Program { public static void Main(string[] args) { string macs = "02:00:00:D0:CE:92"; byte[] macb = macs.Split(':').Select((s) => byte.Parse(s, NumberStyles.AllowHexSpecifier)).ToArray(); foreach(byte b in macb) { Console.WriteLine(b); } } } }