Show / Hide Table of Contents

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 Source

UserPropertiesDataContractResolver(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 Source

Instance

Declaration
public static readonly UserPropertiesDataContractResolver Instance
Field Value
Type Description
UserPropertiesDataContractResolver

Methods

| Improve this Doc View Source

ResolveContract(Type)

Declaration
public override JsonContract ResolveContract(Type type)
Parameters
Type Name Description
Type type
Returns
Type Description
JsonContract

Extension Methods

BusinessObjectExtensions.DeepClone<T>(T)
COMExtensions.DeepClone<T>(T)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX