tagged [base-class-library]
Is there any kind of "ReferenceComparer" in .NET?
Is there any kind of "ReferenceComparer" in .NET? There are several places in BCL where one can make use of [IEqualityComparer](http://msdn.microsoft.com/en-us/library/ms132151.aspx). Like [Enumerable...
- Modified
- 4 Feb at 18:1
Meaning of confusing comment above "string.Empty" in .NET/BCL source?
Meaning of confusing comment above "string.Empty" in .NET/BCL source? I'm trying to understand why `string.Empty` is `readonly` and not a `const`. I saw [this](https://stackoverflow.com/q/507923/60117...
- Modified
- 23 May at 11:45
Reflection with generic syntax fails on a return parameter of an overridden method
Reflection with generic syntax fails on a return parameter of an overridden method To avoid old-fashioned non-generic syntax when searching for attributes of a known type, one usually uses the extensi...
- Modified
- 1 Aug at 13:54
Using Microsoft.Bcl.Async with Code Analysis causes errors
Using Microsoft.Bcl.Async with Code Analysis causes errors I'm trying to use [Microsoft.Bcl.Async](https://nuget.org/packages/Microsoft.Bcl.Async) and Code Analysis, but when I run Code Analysis I get...
- Modified
- 20 Jun at 09:12
Why is the Linq-to-Objects sum of a sequence of nullables itself nullable?
Why is the Linq-to-Objects sum of a sequence of nullables itself nullable? As usual, `int?` means `System.Nullable` (or `System.Nullable`1[System.Int32]`). Suppose you have an in-memory `IEnumerable` ...
- Modified
- 8 Dec at 13:32
Wrong logarithm of BigInteger when size of BigInteger exceeds ¼ gigabyte
Wrong logarithm of BigInteger when size of BigInteger exceeds ¼ gigabyte When I have a `BigInteger` whose size exceeds 2 gigabits (that's ¼ gigabyte; I found this threshold by trial and error), the lo...
- Modified
- 18 Jan at 22:49
Is there a memory leak in the ConcurrentBag<T> implementation?
Is there a memory leak in the ConcurrentBag implementation? > [Possible memoryleak in ConcurrentBag?](https://stackoverflow.com/questions/5353164/possible-memoryleak-in-concurrentbag) Edit1: The act...
- Modified
- 23 May at 11:51
Cancellation of SemaphoreSlim.WaitAsync keeping semaphore lock
Cancellation of SemaphoreSlim.WaitAsync keeping semaphore lock In one of our classes, we make heavy use of [SemaphoreSlim.WaitAsync(CancellationToken)](http://msdn.microsoft.com/en-us/library/hh462773...
- Modified
- 22 Jan at 13:38
How is the intention of IServiceLocator.GetInstance(Type) different from the intention of IServiceProvider.GetService(Type)?
How is the intention of IServiceLocator.GetInstance(Type) different from the intention of IServiceProvider.GetService(Type)? Is there a difference in intentions of the method signatures `IServiceProvi...
- Modified
- 13 Feb at 22:18
installing nuget package "same key has already been added."
installing nuget package "same key has already been added." i am trying to install Microsoft.Bcl.Build 1.0.14 nuget returns ``` Installing 'Microsoft.Bcl.Build 1.0.14'. Successfully installed 'Microso...
- Modified
- 11 Aug at 02:31