Click or drag to resize
Json.NET

NamingStrategyGetPropertyName Method

 
Gets the serialized name for a given property name.

Namespace:  Newtonsoft.Json.Serialization
Assembly:  Newtonsoft.Json (in Newtonsoft.Json.dll) Version: 12.0.1+509643a8952ce731e0207710c429ad6e67dc43db
Syntax
C#
public virtual string GetPropertyName(
	string name,
	bool hasSpecifiedName
)

Parameters

name
Type: SystemString
The initial property name.
hasSpecifiedName
Type: SystemBoolean
A flag indicating whether the property has had a name explicitly specified.

Return Value

Type: String
The serialized property name.
See Also