public static ToInt16 ( this me ) : short | ||
me | this | |
Результат | short |
public static short ToInt16(this Stream me)
{
if (me != null)
{
byte[] buffer = new byte[2];
me.Read(buffer, 0, 2);
return BitConverter.ToInt16(buffer, 0);
}
else
{
return 0;
}
}
public static long ToInt64(this Stream me)