Example #1
0
        /// <summary>
        /// Return true if two procedure nodes have same signature.
        /// </summary>
        /// <param name="other"></param>
        /// <returns></returns>
        public bool Matches(string name, List <ProtoCore.Type> argumentTypes)
        {
            if (argumentTypes == null)
            {
                throw new ArgumentNullException("argumentTypes");
            }

            return(Name == name && ArgumentTypes.SequenceEqual(argumentTypes));
        }
 public override bool Equals(object obj)
 {
     return(obj is AttributeNodeTemplate && ArgumentTypes.SequenceEqual(((AttributeNodeTemplate)obj).ArgumentTypes));
 }