internal RemoteMemberBrowserInfo(NetMemberBrowserInfo wrapped, RemoteTypeBrowserInfo type, string nodeText)
        {
            Debug.Assert(wrapped != null && type != null && nodeText != null,
                         "wrapped != null && type != null && nodeText != null");

            m_wrapped  = wrapped;
            m_type     = type;
            m_nodeText = nodeText;
        }
Example #2
0
        public override int CompareTo(object obj)
        {
            if (!(obj is RemoteTypeBrowserInfo))
            {
                throw new ArgumentException("Object must be of type '" + GetType().FullName + "'.", "obj");
            }

            RemoteTypeBrowserInfo other = (RemoteTypeBrowserInfo)obj;

            return(Wrapped.CompareTo(other.Wrapped));
        }
Example #3
0
        public override bool Equals(object obj)
        {
            NetTypeBrowserInfo other = obj as NetTypeBrowserInfo;

            if (other == null)
            {
                return(false);
            }

            // The other object may be a RemoteTypeBrowserInfo or just a NetTypeBrowserInfo.

            RemoteTypeBrowserInfo otherRemote = other as RemoteTypeBrowserInfo;

            if (otherRemote == null)
            {
                return(object.Equals(Wrapped, other));
            }
            else
            {
                return(object.Equals(Wrapped, otherRemote.Wrapped));
            }
        }