ArtemisComm.Utility.ToSingle C# (CSharp) Méthode

ToSingle() public static méthode

public static ToSingle ( this me ) : float
me this
Résultat float
        public static float ToSingle(this Stream me)
        {
            if (me != null)
            {
                byte[] buffer = new byte[4];

                me.Read(buffer, 0, 4);
                return BitConverter.ToSingle(buffer, 0);
            }
            else
            {
                return 0;
            }
        }