Пример #1
0
        public bool Equals(VSIMethodInfo other)
        {
            if (ReferenceEquals(other, null))
            {
                return(false);
            }

            if (ReferenceEquals(other, this))
            {
                return(true);
            }

            if (other.NamespaceName != NamespaceName)
            {
                return(false);
            }

            if (other.ClassName != ClassName)
            {
                return(false);
            }

            if (other.MethodName != MethodName)
            {
                return(false);
            }

            return(true);
        }
Пример #2
0
        public void MergeFrom(VSIMethodInfo other)
        {
            if (other.NamespaceName != null)
            {
                NamespaceName = other.NamespaceName;
            }

            if (other.ClassName != null)
            {
                ClassName = other.ClassName;
            }

            if (other.MethodName != null)
            {
                MethodName = other.MethodName;
            }
        }