We help IT Professionals succeed at work.

Where is Actual MS Interface code for In Depth Interface Study?

pointeman
pointeman asked
on
I'm not perticular about which Interface, just would like to see actual code. I find countless code examples about derived classes...
Comment
Watch Question

Most Valuable Expert 2012
Top Expert 2008

Commented:
I am confused what you are looking for...  "Depth Interface Study"...

Author

Commented:
Actual MS code of a .NET Interface.
Most Valuable Expert 2012
Top Expert 2008
Commented:
If you are talking about using reflection on an interface, then I wouldn't think that would provide much value, since it is just a simple contract declaration.


public interface IQueryable : IEnumerable
{
    // Properties
    Type ElementType { get; }
    Expression Expression { get; }
    IQueryProvider Provider { get; }
}

Open in new window


Are you talking about the concrete classes, and how to implement an interface?

Author

Commented:
I know MS probably writes .NET framework in C++, just wondering what their actual code looks like.
Most Valuable Expert 2012
Top Expert 2008
Commented:
.NET is written in .NET, but it is, in many cases, just a wrapper around COM, or Win32 API calls.  If you use an application like Reflector, or ILSpy, you can examine the base framework code.


Snapshot.png