This repository has been archived by the owner on Sep 14, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 346
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Updates for .NET Core * Get more tests passing on .NET Core
- Loading branch information
Showing
32 changed files
with
192 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
// See the LICENSE file in the project root for more information. | ||
|
||
#if NETSTANDARD | ||
|
||
namespace System.Text | ||
{ | ||
using System; | ||
using System.Text; | ||
|
||
|
||
[Serializable] | ||
public sealed class EncodingInfo | ||
{ | ||
int iCodePage; // Code Page # | ||
String strEncodingName; // Short name (web name) | ||
String strDisplayName; // Full localized name | ||
|
||
internal EncodingInfo(int codePage, string name, string displayName) | ||
{ | ||
this.iCodePage = codePage; | ||
this.strEncodingName = name; | ||
this.strDisplayName = displayName; | ||
} | ||
|
||
|
||
public int CodePage | ||
{ | ||
get | ||
{ | ||
return iCodePage; | ||
} | ||
} | ||
|
||
|
||
public String Name | ||
{ | ||
get | ||
{ | ||
return strEncodingName; | ||
} | ||
} | ||
|
||
|
||
public String DisplayName | ||
{ | ||
get | ||
{ | ||
return strDisplayName; | ||
} | ||
} | ||
|
||
|
||
public Encoding GetEncoding() | ||
{ | ||
return Encoding.GetEncoding(this.iCodePage); | ||
} | ||
|
||
public override bool Equals(Object value) | ||
{ | ||
EncodingInfo that = value as EncodingInfo; | ||
if (that != null) | ||
{ | ||
return (this.CodePage == that.CodePage); | ||
} | ||
return (false); | ||
} | ||
|
||
public override int GetHashCode() | ||
{ | ||
return this.CodePage; | ||
} | ||
|
||
} | ||
} | ||
|
||
#endif |
2 changes: 1 addition & 1 deletion
2
Languages/IronPython/IronPython/Runtime/Exceptions/ExternalException.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#if NETSTANDARD1_6 | ||
#if NETCOREAPP1_0 | ||
|
||
namespace System { | ||
[Serializable] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.