22 lines
502 B
C#
22 lines
502 B
C#
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;
|
|
}
|
|
}
|
|
}
|