* Add serializable attribute and typeforward and adding serialization impl
* Expose ZLibException in impl assembly
* Remove deserialization negative tests
* Adding tests for exceptions
* Adding SqlError data to base exception data table
* System Data Facade
* Add netfx471 blob diffs for Hashtable and ListDictionary
* Build Microsoft.NETCore.App.deps.json after manual shims
* Disable currently failing uap/uapaot tests because of shim assembly load errors
Commit migrated from https://github.com/dotnet/corefx/commit/e3f74deb999571d3f34a6b2b8011caebcf06dbfc
* Culture Converter added
* space formatting
* Expected and actual argument reordered
* Removed to string
* Reference Converter and its test added
* fixing reference Converter
* Skipping test on framework
* CultureInfo added with others
* Removed Reference Connverter
Commit migrated from https://github.com/dotnet/corefx/commit/c6115c50849d1524a26b2aa4c44e905a31570870
* Moving PlatformDetection to Corefx.Private.TestUtilities assembly
The purpose of this change is to clean up all test projects instead of including the PlatformDetection code inside every test project, we’ll have it in the Corefx.Private.TestUtilities.
I have refactored the PlatformDetection to split the different implementation of Windows and Linux. If we need to do more refactoring there we can do it later as needed.
* Fix Linux BB
* Update the xunit package reference
* Fix wrong condition on one of the tests
* Update the ConditionalFact/Theory to use Type as a parameter
Commit migrated from https://github.com/dotnet/corefx/commit/878e2fcf5a9f1068015e5fada9231088663e3490
- We don't need to check for if the oleColor is a system color before
the switch statement as the switch statement covers all possibilities
- Pass the culture directly to ColorConverterCommon.ConvertFromString.
In System.Drawing.Common we already pass CultureInfo.CurrentCulture so
this deletes that dead code, but since it is in Common we need to update
it elsewhere, which is in a single place.
Commit migrated from https://github.com/dotnet/corefx/commit/486da818e0e65ee21a4000db4670481d91b0b9df
* Manually build mscorlib shim to allow for internal type forwards
* prepare tests for netfx->core deserialization changes
* update netfx serialized data
* change hash updater so it doesn't use hard-coded path
* Code cleanup for binary serialization
* Changed ListT to ArrayList in CookieCoolection for cross serialization
* Merge
* Changed observablecollection typeforwards that already had typeforwards on netfx
* Adding ValueTuple blobs for netfx471
* Add internal types which need to be forwarded
* Pull mscorlib shim in along with windows.winmd
To build UAP refs and libs we need an mscorlib shim. So for the build
we pull one in from packages and it will get overwritten when we build
the final one as part of our shim builds
* Removed not needed typeforward and added description
* Remved typeforwards from nested types
* Fixed generic type syntax
* Updated coreclr version, ifdefed imports for netcoreapp
* disable netfx serialization for now
* Merge error fixed
* Update blobs after coreclr changes
* Adding ValueTuple manual typeforwards
* Renamed serialization variables for SortedSet
* Disabling TreeSet<,> serialization support (for now)
* Exception internal data storage typeforward added
* Fix type conflict for mscorlib shim in uapaot configuration
* Split the runtime and ref mscorlib shim
We need to build the ref mscorlib shim only against the reference
assemblies so we still build in shims.proj. However the runtime
mscorlib shim needs to have access to internals so we build it against
the runtime implementation using a manual project.
Commit migrated from https://github.com/dotnet/corefx/commit/ca49bfbfd64351fddba56f2141b90841b8561eb7
This change adds a new library, System.Drawing.Common, which supports a
large subset of the System.Drawing API. It is a direct port of the code
from the .NET Framework codebase. The code has been cleaned, formatted,
and sanitized to match the code style of corefx, but is otherwise very
similar to the .NET Framework version. There are a few key differences:
* TypeConverter's have been omitted for now. If we want to add these to
.NET Core, we should add them to the TypeConverter library, rather than
System.Drawing.Common itself.
* Some parts of the library do not respond to "System Events", because
they are not yet implemented in .NET Core. This means that fonts and
colors will not automatically update when the system defaults change,
as they do in .NET Framework. The code is still there, but behind the
feature flag "FEATURE_SYSTEM_EVENTS".
* Various attributes have been removed from the codebase, because they are
no longer applicable. Examples:
* Designer-related attributes (DefaultProperty, DefaultEvent, Editor,
etc.)
* CAS-related attributes. CAS-related method calls (Security demands and
asserts) have also been removed.
There is still further cleanup that can be done in order to match the
style and structure of corefx. For example, the Interop code should be
reorganized to match other BCL libraries.
NOTE: This implementation will only work on Windows, and not in UWP. This
is a strictly compatibility-driven feature. Any changes made to it should
not significantly diverge from the .NET Framework implementation.
Libraries should only take a dependency on System.Drawing.Common if they
are relying on legacy components from .NET Framework; newly-written code
and features should rely on modern alternatives.
Commit migrated from https://github.com/dotnet/corefx/commit/4d34be89f3812919306f1003fa6c035c9caf8970
* Changes to throw PlatformNotSupportedException from ISerializable.GetObjectData and serialization constructors on non-serializable types. Also removes private serialization constructors and some unneeded code that was used to support serializing non-serializable types. A few tests testing GetObjectData implementations are also removed.
* Address code review comments.
* Change exceptions' GetObjectData to just call base rather than throw. This makes them behave consistently with exceptions that didn't override GetObjectData.
Commit migrated from https://github.com/dotnet/corefx/commit/a82f54bd51e22ec3eb14eb5d8f572f022becb8e3
* Remove SerializableAttribute from many CoreFX types that will not be serializable.
* Removes serialization tests for types that are no longer serializable and fixes serializing a couple of types. Includes marking some internal serializable types as public so that they'll be reflectible with .NET Native.
* Remove unneeded pragmas
* Update based on review comments
Commit migrated from https://github.com/dotnet/corefx/commit/6dd451f51451a7d0ceea6104b51bd17005e9a0e6
These tests were null-referencing inside a IsReadOnly
property that looked up ReadOnlyAttributes in a collection
and invoked it without null-checking the lookup result.
The reason it's allowed to do that that is this
collection has some magic in it that lazily auto-populates
itself with the "default" value of the attribute
if the attribute itself isn't found on a lookup.
So as long a default exists, a lookup of this attribute
type never returns null.
Unfortunately, the "default" is discovered by reflecting
for a static field named "Default" on the attribute
type.
Commit migrated from https://github.com/dotnet/corefx/commit/1bb768c31c53a47ab892285b36ccedf892bb7ccc
EnumConverter.GetStandardValues switched from using `ArrayList` to `List<object>` when it was ported to .NET Core. But it performs sorting using the non-generic IComparer, which `List<object>` doesn't have APIs for. Rather than trying to work around the difference, it makes sense to just revert to using ArrayList.
Commit migrated from https://github.com/dotnet/corefx/commit/adf6473ff41cc797d1b7f9b41e815173bffe6d98