Class UserPropertiesDataContractResolver
The UserPropertiesContractResolver allows to put non-BO4E-standard/custom fields/properties into a "userProperties" object.
Inheritance
System.Object
UserPropertiesDataContractResolver
Namespace: BO4E
Assembly: BO4Enet.dll
Syntax
public class UserPropertiesDataContractResolver : DefaultContractResolver
Constructors
| Improve this Doc View SourceUserPropertiesDataContractResolver(HashSet<String>)
The UserPropertiesDataContractResolver is initialised with a white list of allowed properties. Everything else is discarded.
Declaration
public UserPropertiesDataContractResolver(HashSet<string> userPropertiesWhiteList)
Parameters
| Type | Name | Description |
|---|---|---|
| HashSet<System.String> | userPropertiesWhiteList | white list of properties (actually a white"set") |
Fields
| Improve this Doc View SourceInstance
Declaration
public static readonly UserPropertiesDataContractResolver Instance
Field Value
| Type | Description |
|---|---|
| UserPropertiesDataContractResolver |
Methods
| Improve this Doc View SourceResolveContract(Type)
Declaration
public override JsonContract ResolveContract(Type type)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | type |
Returns
| Type | Description |
|---|---|
| JsonContract |