protected override bool OnMatch(MatchContext context, VariableReferenceExpression node)
 {
     if (!context.TryGetData(this.get_Name(), out V_0))
     {
         return(false);
     }
     return(node.get_Variable() == V_0);
 }
        protected override bool OnMatch(MatchContext context, VariableReferenceExpression node)
        {
            object data;

            if (!context.TryGetData(Name, out data))
            {
                return(false);
            }

            return(node.Variable == data);
        }
        public override bool Match(MatchContext context, object @object)
        {
            object data;

            if (!context.TryGetData(Name, out data))
            {
                return(false);
            }

            var comparer = Comparer ?? EqualityComparer <object> .Default;

            return(comparer.Equals(data, @object));
        }
Beispiel #4
0
 public override bool Match(MatchContext context, object object)
 {
     if (!context.TryGetData(this.get_Name(), out V_0))
     {
         return(false);
     }
     stackVariable6 = this.get_Comparer();
     if (stackVariable6 == null)
     {
         dummyVar0      = stackVariable6;
         stackVariable6 = EqualityComparer <object> .get_Default();
     }
     return(stackVariable6.Equals(V_0, object));
 }