-Tests
This commit is contained in:
@@ -81,7 +81,7 @@ namespace Newtonsoft.Json.Tests.Serialization
|
||||
public string PropertyPrefix { get; set; }
|
||||
public string PropertySuffix { get; set; }
|
||||
|
||||
protected internal override string ResolvePropertyName(string propertyName)
|
||||
protected override string ResolvePropertyName(string propertyName)
|
||||
{
|
||||
return base.ResolvePropertyName(PropertyPrefix + propertyName + PropertySuffix);
|
||||
}
|
||||
|
||||
@@ -97,12 +97,12 @@ namespace Newtonsoft.Json.Tests.Serialization
|
||||
{
|
||||
public class DictionaryKeyContractResolver : DefaultContractResolver
|
||||
{
|
||||
protected internal override string ResolveDictionaryKey(string dictionaryKey)
|
||||
protected override string ResolveDictionaryKey(string dictionaryKey)
|
||||
{
|
||||
return dictionaryKey;
|
||||
}
|
||||
|
||||
protected internal override string ResolvePropertyName(string propertyName)
|
||||
protected override string ResolvePropertyName(string propertyName)
|
||||
{
|
||||
return propertyName.ToUpper(CultureInfo.InvariantCulture);
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@ namespace Newtonsoft.Json.Tests.TestObjects
|
||||
{
|
||||
public class MetroPropertyNameResolver : DefaultContractResolver
|
||||
{
|
||||
protected internal override string ResolvePropertyName(string propertyName)
|
||||
protected override string ResolvePropertyName(string propertyName)
|
||||
{
|
||||
#if !(NETFX_CORE || DNXCORE50)
|
||||
return ":::" + propertyName.ToUpper(CultureInfo.InvariantCulture) + ":::";
|
||||
|
||||
Reference in New Issue
Block a user