Source/NFX/Serialization/BSON/BinUtils.cs
/// <summary>
/// Reads BSON element type from stream
/// </summary>
Reads BSON element type from stream
Reads BSON element type from stream
public static BSONElementType ReadElementType(Stream stream)
      {
        var b = stream.ReadByte();
        if (b==0)
          throw new BSONException(StringConsts.BSON_READ_PREMATURE_EOF_ERROR.Args("ReadElementType"));
        return (BSONElementType)b;
      }
public static BSONElementType ReadElementType ( Stream stream ) { var b = stream . ReadByte ( ) ; if ( b == 0 ) throw new BSONException ( StringConsts . BSON_READ_PREMATURE_EOF_ERROR . Args ( " " ) ) ; return ( BSONElementType ) b ; }
Reads BSON element type from stream
Reads BSON element type from stream
//The method CAN return bad JSON type, but the later logic will not be able to map it and will throw
stream
Stream