Esempio n. 1
0
        // _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
        //     Operator
        // _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/

        /// <summary>
        /// バイナリ変換する。
        /// </summary>
        /// <returns>バイナリデータ</returns>
        public IEnumerable <byte> ToBinary()
        {
            if (Type == DBItemType.Int)
            {
                return(IntValue.ToBytes(Endian.Woditor));
            }
            if (Type == DBItemType.String)
            {
                return(StringValue.ToWoditorStringBytes());
            }
            throw new InvalidOperationException();
        }