-Increment prerelease to beta3
-Remove internals from ResolvePropertyName
This commit is contained in:
@@ -536,12 +536,11 @@ namespace Newtonsoft.Json.Tests.Converters
|
||||
|
||||
public class LowercaseContractResolver : DefaultContractResolver
|
||||
{
|
||||
protected internal override string ResolvePropertyName(string propertyName)
|
||||
protected override string ResolvePropertyName(string propertyName)
|
||||
{
|
||||
return propertyName.ToLower();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -48,7 +48,7 @@ namespace Newtonsoft.Json.Serialization
|
||||
/// </summary>
|
||||
/// <param name="propertyName">Name of the property.</param>
|
||||
/// <returns>The property name camel cased.</returns>
|
||||
protected internal override string ResolvePropertyName(string propertyName)
|
||||
protected override string ResolvePropertyName(string propertyName)
|
||||
{
|
||||
// lower case the first letter of the passed in name
|
||||
return StringUtils.ToCamelCase(propertyName);
|
||||
|
||||
@@ -1361,7 +1361,7 @@ namespace Newtonsoft.Json.Serialization
|
||||
/// </summary>
|
||||
/// <param name="propertyName">Name of the property.</param>
|
||||
/// <returns>Resolved name of the property.</returns>
|
||||
protected internal virtual string ResolvePropertyName(string propertyName)
|
||||
protected virtual string ResolvePropertyName(string propertyName)
|
||||
{
|
||||
return propertyName;
|
||||
}
|
||||
@@ -1371,7 +1371,7 @@ namespace Newtonsoft.Json.Serialization
|
||||
/// </summary>
|
||||
/// <param name="dictionaryKey">Key of the dictionary.</param>
|
||||
/// <returns>Resolved key of the dictionary.</returns>
|
||||
protected internal virtual string ResolveDictionaryKey(string dictionaryKey)
|
||||
protected virtual string ResolveDictionaryKey(string dictionaryKey)
|
||||
{
|
||||
return ResolvePropertyName(dictionaryKey);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user