base-class-library

What sort of mathematics do you use in your .Net app?

Excluding everything that's in System.Math. I think that System.Math is woefully inadequate. For example, in several official .Net frameworks, I can count 3 different implementations of matrices. Same goes for vectors. One implementation of a complex number; several different implementations of arbitrary rational numbers, and so on. So...

How did Microsoft create assemblies that have circular references?

In the .NET BCL there are circular references between: System.dll and System.Xml.dll System.dll and System.Configuration.dll System.Xml.dll and System.Configuration.dll Here's a screenshot from .NET Reflector that shows what I mean: How Microsoft created these assemblies is a mystery to me. Is a special compilation process requir...

Updating only .dll of a reference in my ASP.NET Application

Hello, I have a deployed web application project that references my Utility.dll class library. I want to make a change to the Utlity.dll and roll only that .dll out. The problem is that when I do that, I get the following error when I try to launch my site: Could not load file or assembly 'Utility, Version=1.0.0.0, Culture=neutral, Pu...

Exactly how large is the .NET (3.5) Framework Class Library?

I've regularly read that the framework is just too large for one developer to have experience with every part of it. Having some actual numbers would certainly help put things in perspective. MSDN seems to list them all but there are no actual numbers (from what I could see) and spending hours counting them is not my idea of productive...

Why did .NET's EnableDecompression default value change between 2.0 and 3.0?

We use .NET Web Services--both non-WCF and WCF, though the overwhelming majority is non-WCF, for legacy reasons--pretty heavily, and as I was testing something in Fiddler, I noticed that the response body size was pretty large. Then I noticed that the request headers didn't have any Accept-Encoding headers. After doing some digging, it ...

bundle .NET dlls to run application in .NET-less machine?

AFAIK, ngen turns MSIL into native code (also reffered to as pre-JIT), however I never payed too much attention at it's startup performance impact. Ngen'd applications still require the .NET base class libraries (the runtime). Since the base class libraries have everything our .NET assemblies need (correct?) would it be possible to ship...

Why need to mention "Supported by the .NET Compact Framework" for classes members ?

In MSDN documentation, many .NET classes methods (like ArrayList ) mentioned that "Supported by the .NET Compact Framework". How internally it has been modified so that it has been supported by .NET compact Framework? I assumed all the .NET Base class library can be used on .NET compact Framework. ...

Why do the overloads of String.Format exist?

I was using Reflector to look at the implementation of String.Format and had always been under the impression that the overloads of String.Format that took 1, 2 & 3 arguments were optimized versions of the method that takes an object array. However, what I found was that internally they create an object array and then call a method that ...

Tool to determine .NET assembly framework dependencies

I'm looking for a tool that can tell me what frameworks a .NET assembly will work under. Or more specifically, what BCL (base class libraries) versions the methods within it requires. What triggered me was this: Today I got a bug-report against an application we're making that basically said: "you're using WaitOne(Int32) but that only w...

Is it legal to quote from the Microsoft Reference Source or from reflected BCL code?

I've noticed that some questions here on StackOverflow (example) are answered by quoting either some part of the .net Reference Code or some decompiled parts of the .net base class library (using Reflector). On one hand, the MS Reference Source License does not allow redistribution of the code "outside your company", and I'm pretty s...

Why is there no SortedList<T> in .NET?

Why is there only a SortedList<TKey, TValue> which looks more like a dictionary, but no SortedList<T> that is actually just a list that is always sorted? According to the MSDN documentation on SortedList, it is actually internally implemented as a dynamically-sized array of KeyValuePair<TKey, TValue> that is always sorted by the key. Wo...