You've already forked linux-packaging-mono
Imported Upstream version 4.4.2.11
Former-commit-id: f298c60ab6b9c5431949284d6d35f1c54044c859
This commit is contained in:
parent
42e38034c4
commit
a569aebcfd
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user