예제 #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());
 }