Port System.Drawing.Printing.MarginsConverter (dotnet/corefx#33640)
authorMaryam Ariyan <maryam.ariyan@microsoft.com>
Sat, 1 Dec 2018 01:47:12 +0000 (17:47 -0800)
committerSantiago Fernandez Madero <safern@microsoft.com>
Sat, 1 Dec 2018 01:47:12 +0000 (19:47 -0600)
commit41e534fd22abad56e3754b1d50b252f90e1985b9
treed3451b49361854faf7270cc7a818fc6e66ed4d98
parent7eb62f5140e5ca8a124a9055e710a99827c8b67c
Port System.Drawing.Printing.MarginsConverter (dotnet/corefx#33640)

* Exposes System.Drawing.Printing.MarginsConverter

Adds tests for MarginsConverter

Fixes dotnet/corefx#33441

* sort usings

* - nit fixes
- whitespace formatting
- code cleanup

* Fix formatting

* Moves MarginsConverter to System.Windows.Extensions

* Add missing using statement and remove extra line

* Apply PR feedback, undo caching.

* Fixing test failures on netfx

* Add comments and put mono headers

* Replace source code with referencesource content

* Cleanup

* Removing SuppressMessage Attributes

* Keeps FullFramework condition to show subtle differences

* Remove duplication

* Updating test and keeping fullframework code for CreateInstance

Commit migrated from https://github.com/dotnet/corefx/commit/a53d140654fe049036b9e9faee05371ebb6cdcb4
src/libraries/System.Drawing.Common/ref/System.Drawing.Common.cs
src/libraries/System.Drawing.Common/src/System/Drawing/Printing/Margins.cs
src/libraries/System.Windows.Extensions/ref/System.Windows.Extensions.cs
src/libraries/System.Windows.Extensions/src/Resources/Strings.resx
src/libraries/System.Windows.Extensions/src/System.Windows.Extensions.csproj
src/libraries/System.Windows.Extensions/src/System/Drawing/Printing/MarginsConverter.cs [new file with mode: 0644]
src/libraries/System.Windows.Extensions/tests/System.Windows.Extensions.Tests.csproj
src/libraries/System.Windows.Extensions/tests/System/Drawing/Printing/MarginsConverterTests.cs [new file with mode: 0644]