How to find out which interfaces the .net class implements?

Ok, so I recently studied C # and .net and one thing that seems to be missing from the C # documentation at http://msdn.microsoft.com/ , which is present in the java documentation (like ArrayList doc ) is that the documentation for the java class will say something like this:

All implemented interfaces: Serializable, Cloneable, Iterable, Collection, list, RandomAccess Direct known subclasses: AttributeList, RoleList, RoleUnresolvedList

This allows me to find out which interfaces it implements and, possibly, discover interfaces that I did not know about yet. I can still click on the interface and get information about which classes implement it (in the standard class) and which interfaces decrypt it:

All Superinterfaces:
     Iterable<E>
All Known Subinterfaces:
     BeanContext, BeanContextServices, BlockingDeque<E>, BlockingQueue<E>, ...
All Known Implementing Classes:
     AbstractCollection, AbstractList, AbstractQueue, AbstractSequentialList, ...

When using the Microsoft documentation, I get only the base classes and possibly subclasses:

System.Object 
  System.MarshalByRefObject
    System.IO.Stream
      More...

"Details ..." is a link with a list of subclasses.

Is there a way in the documentation to find which interfaces the .Net class implements the same way we can in the Java documentation?

Edit: I am using Visual Studio Express and the public documentation on MSDN, so I suppose the answer may be: yes, you can, but first you have to pay for [full visual studio | subscription to MSDN | ...].

+2
source share
4

Documentation

(, IObservableCollection (T)) .

,

[SerializableAttribute]
public class ObservableCollection<T> : Collection<T>, 
    INotifyCollectionChanged, INotifyPropertyChanged

ILSpy

, , , ILSpy. , . enter image description here

, Visual Studio ( 100% Express). . .

enter image description here

+4

Visual Studio , , . bool F12

, F12, bool:

namespace System
{
    // Summary:
    //     Represents a Boolean value.
    [Serializable]
    [ComVisible(true)]
    public struct Boolean : IComparable, IConvertible, IComparable<bool>, IEquatable<bool>
    {
        // Summary:
        //     Represents the Boolean value false as a string. This field is read-only.
        public static readonly string FalseString;
...

, ( > , Ctrl + W, D)), -

+1

Resharper , . Ctrl + Shift + F1, , . resharper ( , ).

0

Resharper . :

  • CTRL + U
  • Right-click class name> Navigation> Base Symbols
  • Resharper Menu> Navigation> Basic Symbols

This command allows you to navigate the inheritance hierarchy to the base type [including classes and interfaces] or the current character method.

Here is a sample from the XAML.cs file

enter image description here

0
source

Source: https://habr.com/ru/post/1696238/


All Articles