Fix License wording, extra line break, and delete unused file
Issue -
ImmutableArray.CreateBuilder<int>(-1); throws overflow exception but is expected to throw ArgumentOutOfRangeException.
Fix -
This fix checks the argument "capacity" for valid range such that ArgumentOutOfRangeException is thrown instead.
Also, added a testcase for this scenario.
Get XML building in VS by switching to standard .resx
Merge branch 'xml-resource-fix' of https://github.com/nguerrera/corefx
Splitting XLinq classes into separate files.
Remove internal package source from NuGet.config

In preparation for making our repositories public, I've uploaded
Microsoft.DotNet.BuildTools to NuGet.org.  This change removes
our internal NuGet feed, leaving the public feed.  With this change
the CoreFx repository should now build outside of Microsoft.
Improve performance of enumerating empty collections.

Avoid perf hit from acquiring a reusable stack object to enumerate a collection that is empty, and thus requires no stack object.
This improves ImmutableSortedDictionary directly, and both ImmutableDictionary and ImmutableHashSet benefit as well since they use ImmutableSortedDictionary internally.
Remove or cache some unnecessary allocations
Remove unnecessary unsafe code flag.

The Immutable PCL targets platforms that include those that don't support unsafe code. Opening the solution in VS2015 results in a warning in the error list about this. But features that required unsafe code were recently removed so we don't need this flag any more.
Fix tests to pass after perf improvement.
Exclude method used for perf trace collection from functional tests.
Switches object pool IDs from GUIDs to Int32.

This cuts out the expensive Guid.op_Equality step from ThrowDisposedIfNotOwned.
Add code comment.
Switch from locks to ThreadStatic for AllocFreeConcurrentStack.
Remove use of locks that significantly slow down enumeration.

Enumerating some immutable collections are necessarily slower than ordinary collections because they have to walk binary trees. But we needn't throw in locks into the enumerator and slow it down further in an attempt to claim enumerators are somehow thread-safe. They're not. And misusing them across threads concurrently would already lead to corruption.

By removing the locks here, we've significantly improved performance of enumerating ImmutableSortedDictionary (and the other binary tree based collections). Even though the locks weren't contested, they still took a significant chunk of time.

The loss of the locking means that technically if the enumerator is in use across multiple threads then now it's possible for a recycled Stack to still be in use on another thread, leading to data corruption for the possibly innocent subsequent user of that stack. Since we've already decided that immutable collections will not be considered as behind a security boundary (i.e. we won't treat such possibilities as security compromising to the core system), this seems quite reasonable for such an unlikely and unsupported pattern to carry this risk given the huge wins it has for all the supported cases.
Defend against pathalogical thread-safety case.

If SecureObjectPool.NewId were to execute in a concurrent scenario where one thread actually was suspended while other threads were allowed to increment the counter enough to go through all 32-bits of values and the timing happened to be _just write_, we could theoretically return UnassignedId. This fixes it by looping until we get it right.
Remove unnecessary ValidationStrings.resx file.

The resources in ValidationStrings.resx were not used anywhere, so I'm
just removing it as well as the coresponding designer support.
Added guards to ICollection.CopyTo implementations to avoid allocating the indices array for SetValue when the collection being copied from is empty
Merge branch 'FixLicenseAndFormatting' of https://github.com/mellinoe/corefx
Use "this." in a few places to match the style of the project