配列の結合

とりあえずセコセコ覚え書き

Enumerable クラスを使う。

            byte[] source = { 0x00, 0x01, 0x02, 0x04};
            byte[] destination = { 0x00, 0x01, 0x02 };

            byte[] result = Enumerable.Concat(source, destination).ToArray();

コメントを残す

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です