ProjetThe/ProjetTheAlone/Outil/toNullableByteArray.cs

22 lines
504 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ProjetTheAlone.Outil
{
class toNullableByteArray
{
public static byte?[] Convert(byte[] bytes)
{
byte?[] bb = Array.ConvertAll<byte, byte?>(bytes,
delegate (byte b)
{
return b;
});
return bb;
}
}
}