Imported Upstream version 4.4.2.11

Former-commit-id: f298c60ab6b9c5431949284d6d35f1c54044c859
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2016-07-29 09:36:17 +00:00
parent 42e38034c4
commit a569aebcfd
22 changed files with 30 additions and 148 deletions

View File

@ -22,16 +22,32 @@
namespace System.Text
{
public sealed partial class CodePagesEncodingProvider
public sealed partial class CodePagesEncodingProvider : EncodingProvider
{
static CodePagesEncodingProvider instance = new CodePagesEncodingProvider ();
private CodePagesEncodingProvider ()
{
}
public static System.Text.EncodingProvider Instance {
get {
throw new NotImplementedException ();
return instance;
}
}
public override Encoding GetEncoding (string name)
{
// MSDN: "if name is not the name of an encoding that you support, the method should return null."
// We do this here since all our encodings are already supported by the main Encoding class
return null;
}
public override Encoding GetEncoding (int codepage)
{
// MSDN: "if codepage is not the code page identifier of an encoding that you support, the method should return null."
// We do this here since all our encodings are already supported by the main Encoding class
return null;
}
}
}