Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/System.Private.CoreLib/shared/System/Text/DecoderReplacementFallback.cs')
-rw-r--r--src/System.Private.CoreLib/shared/System/Text/DecoderReplacementFallback.cs14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/System.Private.CoreLib/shared/System/Text/DecoderReplacementFallback.cs b/src/System.Private.CoreLib/shared/System/Text/DecoderReplacementFallback.cs
index 422b80bb2..a97baf05c 100644
--- a/src/System.Private.CoreLib/shared/System/Text/DecoderReplacementFallback.cs
+++ b/src/System.Private.CoreLib/shared/System/Text/DecoderReplacementFallback.cs
@@ -9,14 +9,14 @@ namespace System.Text
public sealed class DecoderReplacementFallback : DecoderFallback
{
// Our variables
- private String _strDefault;
+ private string _strDefault;
// Construction. Default replacement fallback uses no best fit and ? replacement string
public DecoderReplacementFallback() : this("?")
{
}
- public DecoderReplacementFallback(String replacement)
+ public DecoderReplacementFallback(string replacement)
{
if (replacement == null)
throw new ArgumentNullException(nameof(replacement));
@@ -26,10 +26,10 @@ namespace System.Text
for (int i = 0; i < replacement.Length; i++)
{
// Found a surrogate?
- if (Char.IsSurrogate(replacement, i))
+ if (char.IsSurrogate(replacement, i))
{
// High or Low?
- if (Char.IsHighSurrogate(replacement, i))
+ if (char.IsHighSurrogate(replacement, i))
{
// if already had a high one, stop
if (bFoundHigh)
@@ -60,7 +60,7 @@ namespace System.Text
_strDefault = replacement;
}
- public String DefaultString
+ public string DefaultString
{
get
{
@@ -82,7 +82,7 @@ namespace System.Text
}
}
- public override bool Equals(Object value)
+ public override bool Equals(object value)
{
DecoderReplacementFallback that = value as DecoderReplacementFallback;
if (that != null)
@@ -103,7 +103,7 @@ namespace System.Text
public sealed class DecoderReplacementFallbackBuffer : DecoderFallbackBuffer
{
// Store our default string
- private String _strDefault;
+ private string _strDefault;
private int _fallbackCount = -1;
private int _fallbackIndex = -1;