ProjetThe/ProjetTheAlone/Outil/toByteArray.cs

22 lines
502 B
C#
Raw Normal View History

2019-01-24 22:24:05 +01:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ProjetTheAlone.Outil
{
class toByteArray
{
public static byte[] Convert(byte?[] bytes)
{
byte[] bb = Array.ConvertAll<byte?, byte>(bytes,
delegate (byte? b)
{
return b.Value;
});
return bb;
}
}
}