Matt
Matt

Reputation: 1704

Why can't I see source in Microsoft's reference source?

I have a stack trace, and I would like to look at the source code in the methods.

at System.Web.HttpBufferlessInputStream.ValidateRequestEntityLength()
at System.Web.HttpBufferlessInputStream.EndRead(IAsyncResult asyncResult)
at System.Net.Http.StreamToStreamCopy.StartRead()

If I google ValidateRequestEntityLength, I get a nice result, source and all.

If I google StreamToStreamCopy, it apparently does not exist anywhere.

Why is this? Can I see the source of StreamToStreamCopy anywhere?

Very frustrating that referencesource.microsoft.com doesn't actually let you reference all of the source.

Upvotes: 3

Views: 426

Answers (2)

Scott Chamberlain
Scott Chamberlain

Reputation: 127563

The entire source is not available on refrencesource.microsoft.com for all assembilies in the .NET framework. However some parts where re-created for .NET Core, you can to go to the github page for that class and find it there

Upvotes: 1

Dudemanword
Dudemanword

Reputation: 704

.Net is now open source! What does this mean? The new stuff's source can actually be looked at. The old stuff? Not so much:

https://blogs.msdn.microsoft.com/dotnet/2014/11/12/net-core-is-open-source/

What's supported?:

This is a natural progression of our open source efforts, which already covers the managed compilers (C#, VB, and F#) as well as ASP.NET:

C# & Visual Basic (“Roslyn”)

Visual F# Tools

ASP.NET 5

Entity Framework

This takes it to the next level by extending it to the .NET runtime and the core framework.

.NET Core Framework

Upvotes: 0

Related Questions