AjErl.Language.Atom.Match C# (CSharp) Method

Match() public method

public Match ( Atom atom ) : bool
atom Atom
return bool
        public bool Match(Atom atom)
        {
            return atom != null && this.name == atom.Name;
        }

Usage Example

示例#1
0
        public void MatchWithAnotherAtom()
        {
            Atom atom = new Atom("one");
            Atom atom2 = new Atom("two");

            Assert.IsFalse(atom.Match(atom2));
        }
All Usage Examples Of AjErl.Language.Atom::Match