コード例 #1
0
        public virtual bool RepositoryEquals(IRepositoryBrowserInfo other)
        {
            TypeLibraryBrowserInfo otherTypeLibrary = other as TypeLibraryBrowserInfo;

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

            return(m_typeLibrary == otherTypeLibrary.m_typeLibrary);
        }
コード例 #2
0
        public virtual bool RepositoryEquals(IRepositoryBrowserInfo other)
        {
            NetAssemblyBrowserInfo otherAssembly = other as NetAssemblyBrowserInfo;

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

            return(m_assembly == otherAssembly.m_assembly);
        }
コード例 #3
0
        public override bool RepositoryEquals(IRepositoryBrowserInfo other)
        {
            NetAssemblyBrowserInfo otherAssembly = other as NetAssemblyBrowserInfo;

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

            // The other object may be a RemoteAssemblyBrowserInfo or just a AssemblyBrowserInfo.

            RemoteAssemblyBrowserInfo otherRemote = otherAssembly as RemoteAssemblyBrowserInfo;

            if (otherRemote == null)
            {
                return(Wrapped.RepositoryEquals(otherAssembly));
            }
            else
            {
                return(Wrapped.RepositoryEquals(otherRemote.Wrapped));
            }
        }
コード例 #4
0
 /// <summary>
 /// Called by the object browser to re-connect to the specified repository, if supported. The base
 /// implementation simply returns the same object that was passed in.
 /// </summary>
 protected internal virtual IRepositoryBrowserInfo RefreshRepository(IRepositoryBrowserInfo repository)
 {
     return(repository);
 }
コード例 #5
0
 protected internal override IRepositoryBrowserInfo RefreshRepository(IRepositoryBrowserInfo repository)
 {
     return(RealManager.RefreshRepository(repository));
 }