Commit Graph
16 Commits
Author SHA1 Message Date
Tanner Gooding 5a5ed7652a Regenerating reference sources in order to reorder enum fields (dotnet/corefx#37045)
Commit migrated from https://github.com/dotnet/corefx/commit/17382def0f680653870c31af1acf086ac41dcc0b
2019-04-23 13:40:45 -07:00
Ahson Khan 4fed6ab881 Auto-generate the reference assemblies and separate type forwards (dotnet/corefx#35557)
* Auto-generate the reference assemblies

* Add back type forwards.

* Revert "Add back type forwards."

This reverts commit dotnet/corefx@3acf74aabb.

* Add back TypeForwardedTo in .Forward.cs files

* Add new type forward files to the csproj files

* Add back if-defs and move TestUtilities comment from ref to source

* Remove duplicate definitions, delete unnecessary manual files,

* Fix build breaks

* Add back missing AsyncMethodBuilderAttr to S.Runtime ref

* Fix typo between XmlDocument and XPath.XDocument

* Add type forward fild missed from previous commit

* Fix ECDiffieHellmanCngPublicKey internal ctor for netfx 4.6.1

* Remove "this type was moved to comments" from the type forwards.

* Add back the Xml and Debugger* attributes to Xml.ReaderWriter

* Add back struct layout attributes

* Add back attributes missing (highlighted from api compat)

* Add missing toolbox item attribute in s.data.common.

* Add missing struct layout attributes and remove unnecessary additions

* Add back InterfaceTypeAttribute


Commit migrated from https://github.com/dotnet/corefx/commit/16689aa0a933517dc45465fc6edb6223222414a6
2019-02-27 19:39:21 -08:00
Rama Krishnan Raghupathy 40ebf733d6 Removing Remoting.Messaging from Serialization Formatters
Commit migrated from https://github.com/dotnet/corefx/commit/d244c650e33d7641ccf9d2bd193bfd7b9bf3c712
2016-11-08 14:26:50 -08:00
Stephen Toub 52e3c3d7ae Change all refs to use "throw null;" as member bodies
Following our new guidelines for ref assembly implementations and what GenApi now creates, this updates all of our ref .cs files to use "throw null;" for member bodies that can't just be empty (i.e. members that need to return a value either via the return type or via an out parameter).  I made the change programatically using a simple Roslyn-based tool.


Commit migrated from https://github.com/dotnet/corefx/commit/a9fdc79ff8feb5ad46e9fcbe18fdffcd0bd74679
2016-10-13 09:43:23 -04:00
Stephen Toub 35ef550001 Add missing ObjectManager to Formatter contract
Commit migrated from https://github.com/dotnet/corefx/commit/f2bf9df9d06d306d1632f29ef5dc7e8c344687f7
2016-08-23 19:03:36 -04:00
Stephen Toub 687fdc4b4f Move serialization primitives to System.Runtime
We need BinaryFormatter to be able to serialize types from coreclr that use the various serialization types (e.g. ISerializable), which means those types must have the same identity as the ones BinaryFormatter recognizes, and we need a bunch of types all across corefx to be able to use these same types to implement serialization.  As such, the types are moving down to System.Runtime, and on coreclr, are type-forwarding to the implementations there.

There are a few outstanding issues:
- SR is not currently available in System.Runtime.  The few uses of SR in the versions of the code used for corert have been replaced by hardcoded strings and TODOs.
- Debug.Assert is not currently available in System.Runtime.  Asserts have been commented out with TODOs.
- To get things to build as types are moving around, P2P references are used.


Commit migrated from https://github.com/dotnet/corefx/commit/90be35920b48820536b8740f64d565ded55d811e
2016-08-15 09:47:08 -07:00
Stephen Toub e16d393fec Add IObjectReference test for BinaryFormatter
Commit migrated from https://github.com/dotnet/corefx/commit/2eabd077a09af957f21be011ac5e81a673df07a8
2016-07-26 10:57:55 -04:00
Stephen Toub 87ce158210 Add BinaryFormatter to corefx
This ports BinaryFormatter from desktop, along with all of the supporting types and general Formatter-related types.  I've added a bunch of tests, bringing code coverage up to ~80%, though there's still more that can/should be done.  I did not port remoting-specific functionality, though there are still some remnants I've left as they were enabled in the runtime even when remoting wasn't compiled in, and it wasn't clear if they were serving additional purposes.


Commit migrated from https://github.com/dotnet/corefx/commit/e45a01a4840700d75bb1dd3bf7d0e10ff6a3bc82
2016-07-19 00:33:18 -07:00
Wes Haggard c52abd0b13 Retry Enabling API Compat
This reverts commit dotnet/corefx@6584e50562.


Commit migrated from https://github.com/dotnet/corefx/commit/7b6b573821e5aa0ebfbf018ddd31e54b73ea0045
2016-05-16 06:45:02 -07:00
Matt Ellis fe0be622da Merge pull request dotnet/corefx#8536 from dotnet/revert-8513-EnableApiCompat
Revert "Enable api compat"

Commit migrated from https://github.com/dotnet/corefx/commit/2e0508ac96fe9f88bcb9b4be90fbe6ac022f66c6
2016-05-14 16:57:36 -07:00
Stephen Toub d13adfff72 Merge pull request dotnet/corefx#8525 from KrzysztofCwalina/ContractBug8514
Fixes dotnet/corefx#8514

Commit migrated from https://github.com/dotnet/corefx/commit/91b0366fbbccd3b8476b667c49b50317b6bece79
2016-05-14 15:10:14 -04:00
Matt Ellis a405db787d Revert "Enable api compat"
Commit migrated from https://github.com/dotnet/corefx/commit/6584e505624862af0b5b1d6021c4133cac77e4da
2016-05-13 22:12:55 -07:00
Krzysztof Cwalina 932c72930f Fixes dotnet/corefx#8514
These APIs were left in the reference assembly from the prototyping phase, and then
the toolchain did not properly detect when the references got out of sync from the implementation.


Commit migrated from https://github.com/dotnet/corefx/commit/93b162b7161be95230a170669ca20b616bef8002
2016-05-13 15:18:34 -07:00
Wes Haggard 68814658b4 Fix ApiCompat errors
This fixes a couple easy warnings errors and adds baseline files
for the other errors, which will need bugs filed for them.


Commit migrated from https://github.com/dotnet/corefx/commit/f26668f4054cba4e6aca5c39f62cf876362279ab
2016-05-13 09:10:41 -07:00
Krzysztof Cwalina 7c9f88f518 Added members to SerializationInfo
Commit migrated from https://github.com/dotnet/corefx/commit/15628e60b80cc4cab67b7aa1f2d7bf65b041a334
2016-05-09 13:20:17 -07:00
Krzysztof Cwalina bdc2980429 Adding Binary Serialization Programming Model
We decided to add binary serialization programming model (ISerializable, etc.) as an out of band package.
This will allow existing code implementing the SPM to compile for .NET Core without changes.

This is the ferst in a series of commits to ease porting of code involving serialization.
In subsequent commits, we are planing to:
1. Fill in the details of SerializationInfo
2. Add Exception.set_StackTrace
3. Add FormatterServices.GetUninitializedObject
4. Add BinaryFormatter (the exact semantics TBD)


Commit migrated from https://github.com/dotnet/corefx/commit/db70c8e2ba100b2f0f8fa1ace82dd1988200b269
2016-05-04 17:14:01 -07:00