示例#1
0
        /// <summary>
        ///     Determines whether the specified QLambda is equal to the current QLambda.
        /// </summary>
        /// <param name="l">The QLambda to compare with the current QLambda.</param>
        /// <returns>true if the specified QLambda is equal to the current QLambda; otherwise, false</returns>
        public bool Equals(QLambda l)
        {
            if (l == null)
            {
                return(false);
            }

            return(_expression.Equals(l._expression));
        }
示例#2
0
文件: QLambda.cs 项目: mrecht/qSharp
        /// <summary>
        ///     Determines whether the specified QLambda is equal to the current QLambda.
        /// </summary>
        /// <param name="l">The QLambda to compare with the current QLambda.</param>
        /// <returns>true if the specified QLambda is equal to the current QLambda; otherwise, false</returns>
        public bool Equals(QLambda l)
        {
            if (l == null)
            {
                return false;
            }

            return _expression.Equals(l._expression);
        }
示例#3
0
 private void WriteLambda(QLambda l)
 {
     _writer.Write((sbyte)QType.Lambda);
     _writer.Write((byte)0);
     WriteString(l.Expression.ToCharArray());
 }
示例#4
0
 private void WriteLambda(QLambda l)
 {
     writer.Write((sbyte)QType.Lambda);
     writer.Write((byte)0);
     WriteString(l.Expression.ToCharArray());
 }