예제 #1
0
        public BSONBinary(BSONBinaryType type, byte[] data)
        {
            if (data==null)
             throw new BSONException(StringConsts.ARGUMENT_ERROR+"BSONBinary.ctor(data==null)");

              Type = type;
              Data = data;
        }
예제 #2
0
        public BSONBinary(BSONBinaryType type, byte[] data)
        {
            if (data == null)
            {
                throw new BSONException(StringConsts.ARGUMENT_ERROR + "BSONBinary.ctor(data==null)");
            }

            Type = type;
            Data = data;
        }