public static void AppendShortestExample() { // Setup var lhs = new byte[] { 0xDE, 0xCA, 0xF0 }; var rhs = new byte[] { 0xCA, 0xFE, 0xC0, 0xFF, 0xEE }; // Act var(lhsResult, rhsResult) = ByteArrayUtils.AppendShortest(lhs, rhs); // Conclusion Console.WriteLine("AppendShortest Example"); Console.WriteLine($"lhs:\t{lhs.ToString("H")}"); Console.WriteLine($"rhs:\t{rhs.ToString("H")}"); Console.WriteLine($"lhsResult:\t{lhsResult.ToString("H")}"); Console.WriteLine($"lhsResult:\t{rhsResult.ToString("H")}"); Console.WriteLine(string.Empty); }