Exemple #1
0
        public static TLVVariable wrapSymbol(AMQPSymbol symbol)
        {
            if (symbol == null)
            {
                throw new ArgumentException("Wrapper cannot wrap null symbol");
            }

            byte[]   value = Encoding.ASCII.GetBytes(symbol.Value);
            AMQPType code  = value.Length > 255 ? AMQPType.SYMBOL_32 : AMQPType.SYMBOL_8;

            return(new TLVVariable(code, value));
        }
        public override bool Equals(object obj)
        {
            AMQPSymbol otherItem = obj as AMQPSymbol;

            return(otherItem.Value.Equals(this.Value));
        }