Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Linq;
- namespace TopTwoNumbers
- {
- class Program
- {
- static void Main(string[] args)
- {
- var array1 = new byte[] { 1, 2, 3, 4, 5 };
- Array.Resize<byte>(ref array1, 20);
- int[] bytesAsInts = Array.ConvertAll(array1, c => (int)c);
- Console.WriteLine(string.Join(" ", bytesAsInts));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement