Questions tagged [reference-source]

15 questions
36
votes
4 answers

What does ----s mean in the context of StringBuilder.ToString()?

The Reference Source page for stringbuilder.cs has this comment in the ToString method: if (chunk.m_ChunkLength > 0) { // Copy these into local variables so that they // are stable even in the presence of ----s (hackers might do this) …
Micteu
  • 451
  • 5
  • 17
32
votes
2 answers

Cannot step into .NET framework source code

I am using Visual Studio 2013 and have a .NET 4.5.2 project. I have setup my settings according to following page: http://referencesource.microsoft.com/setup.html With this setup, I can see that all necessary symbols are downloaded and loaded but I…
huseyint
  • 14,953
  • 15
  • 56
  • 78
16
votes
0 answers

Why can't I find System.Web.pdb on referencesource.microsoft.com?

SYMSRV: http://referencesource.microsoft.com/symbols/System.Web.pdb/E6EBD6B61CEA407591438CC4E48036891/System.Web.pdb not found http://referencesource.microsoft.com/symbols: Symbols not found on symbol server. SYMSRV: System.Web.pdb from…
Micah Zoltu
  • 6,764
  • 5
  • 44
  • 72
12
votes
1 answer

What are the groups of four dashes in the .NET reference source code?

I was browsing the source of the PluralizationService when I noticed something odd. In the class there are a couple of private dictionaries reflecting different pluralisation rules. For example: private string[] _uninflectiveWordList = …
Emmit
  • 411
  • 3
  • 8
6
votes
1 answer

Why does `Int32` use `int` in its source code?

Why does Int32 use int in its source code? Doesn't Int32 equal int in C#? So what is the original source code for int? I'm confused.. [Serializable] [System.Runtime.InteropServices.StructLayout(LayoutKind.Sequential)]…
Mohamad Shiralizadeh
  • 8,329
  • 6
  • 58
  • 93
3
votes
1 answer

LINQ Enumerable strategy comparison: Any, Count, SingleOrDefault

We've had a little introspection over at Code Review of LINQ Enumerable and discovered different strategies for iterating a IEnumerable to yield us some information about it. Any public static bool Any( this…
user11523568
3
votes
1 answer

ReSharper 9: Microsoft Reference Source, Instead of Decompiled .cs Files

I'm using ReSharper 9.1.1 on Visual Studio 2013. On some classes, for example System.Data.SqlClient.SqlParameter when I right click on the word SqlParameter and click Go to Definition it directs me to some decompiled cs…
2
votes
2 answers

Can I rebuild .NET class from reference source?

I want to add some methods in System.Net.HttpWebRequest class to suit my needs. I tried reflection but it is quite complicated that I need to alter many of its member class method as well. I am debugging through .NET reference source and I could…
Isolet Chan
  • 417
  • 6
  • 20
1
vote
1 answer

What is the Microsoft ReferenceSource github repository for?

Sorry for my complete ignorance on this matter. I know what http://referencesource.microsoft.com/ aka http://sourceof.net is and I use it from time to time. But I can't understand what this github repository at…
Water Cooler v2
  • 32,724
  • 54
  • 166
  • 336
1
vote
0 answers

From where can I get the debug symbols for System.Web.Mvc.dll?

The Visual Studio debugger reports that the Microsoft Symbols Server does not have symbols for System.Web.Mvc.dll. Where may I find them if I don't want to compile the source myself?
Water Cooler v2
  • 32,724
  • 54
  • 166
  • 336
1
vote
3 answers

Linq to SQL Source in Microsoft ReferenceSource

I google and look in ReferenceSource but I can't find source of LINQ to SQL where LINQ queries converted to SQL statments. Is there any one who knows it? for example: from item in Users select item Converted to: SELECT [t0].[UserID],…
Mohamad Shiralizadeh
  • 8,329
  • 6
  • 58
  • 93
0
votes
0 answers

How were .NET framework reference source files autogenerated?

Apparently a lot of the source files in the reference source for the .NET Framework were autogenerated code, by some means. On some source files a header comment says: // This file was generated, please do not edit it directly. // // Please see…
StayOnTarget
  • 11,743
  • 10
  • 52
  • 81
0
votes
0 answers

Why is some of the Microsoft .NET Framework Reference Source invalid C# code?

I noticed that some of the Microsoft .NET Framework reference source doesn't seem to be valid or at least complete C# code. Here's an example: https://referencesource.microsoft.com/#System.Xaml/System/Windows/Markup/StaticExtension.cs Relevant…
StayOnTarget
  • 11,743
  • 10
  • 52
  • 81
0
votes
1 answer

Stop Visual Studio from accessing Online Reference Sources when going to Definition

When I do a "Go To Definition" for a type in the c# code editor, say IDisposable, Visual Studio opens the Reference Source for IDispoable in the Browser: https://referencesource.microsoft.com/#mscorlib/system/idisposable.cs,1f55292c3174123d How can…
citykid
  • 9,916
  • 10
  • 55
  • 91
0
votes
1 answer

Download all .net PDB's to my computer?

In order to use source stepp debugging : And to use navigation to sources , in Resharper : –I must have the PDB's. But VS downloads every time a specific module. I already downloaded the 50mb zip file from :…
Royi Namir
  • 144,742
  • 138
  • 468
  • 792