Show / Hide Table of Contents

Class BasedOnContractResolver

Used to serialize objects, while only including changed properties from the templates they're based on.

Inheritance
object
DefaultContractResolver
BasedOnContractResolver
BrainContractResolver
Implements
IContractResolver
Inherited Members
DefaultContractResolver.ResolveContract(Type)
DefaultContractResolver.GetSerializableMembers(Type)
DefaultContractResolver.CreateObjectContract(Type)
DefaultContractResolver.CreateConstructorParameters(ConstructorInfo, JsonPropertyCollection)
DefaultContractResolver.CreatePropertyFromConstructorParameter(JsonProperty, ParameterInfo)
DefaultContractResolver.ResolveContractConverter(Type)
DefaultContractResolver.CreateDictionaryContract(Type)
DefaultContractResolver.CreateArrayContract(Type)
DefaultContractResolver.CreatePrimitiveContract(Type)
DefaultContractResolver.CreateLinqContract(Type)
DefaultContractResolver.CreateISerializableContract(Type)
DefaultContractResolver.CreateDynamicContract(Type)
DefaultContractResolver.CreateStringContract(Type)
DefaultContractResolver.CreateContract(Type)
DefaultContractResolver.CreateProperties(Type, MemberSerialization)
DefaultContractResolver.CreateMemberValueProvider(MemberInfo)
DefaultContractResolver.ResolvePropertyName(string)
DefaultContractResolver.ResolveExtensionDataName(string)
DefaultContractResolver.ResolveDictionaryKey(string)
DefaultContractResolver.GetResolvedPropertyName(string)
DefaultContractResolver.DynamicCodeGeneration
DefaultContractResolver.DefaultMembersSearchFlags
DefaultContractResolver.SerializeCompilerGeneratedMembers
DefaultContractResolver.IgnoreSerializableInterface
DefaultContractResolver.IgnoreSerializableAttribute
DefaultContractResolver.IgnoreIsSpecifiedMembers
DefaultContractResolver.IgnoreShouldSerializeMembers
DefaultContractResolver.NamingStrategy
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Microsoft.XboxStudios.BotBrain
Assembly: BotBrain.Core.dll
Syntax
public abstract class BasedOnContractResolver : DefaultContractResolver, IContractResolver

Methods

View Source

CreateProperty(MemberInfo, MemberSerialization)

Creates a Newtonsoft.Json.Serialization.JsonProperty for the given MemberInfo.

Declaration
protected override JsonProperty CreateProperty(MemberInfo member, MemberSerialization memberSerialization)
Parameters
Type Name Description
MemberInfo member

The member to create a Newtonsoft.Json.Serialization.JsonProperty for.

MemberSerialization memberSerialization

The member's parent Newtonsoft.Json.MemberSerialization.

Returns
Type Description
JsonProperty

A created Newtonsoft.Json.Serialization.JsonProperty for the given MemberInfo.

Overrides
DefaultContractResolver.CreateProperty(MemberInfo, MemberSerialization)
View Source

GetBasedOn(object)

Gets the object the given value is based on, if any.

Declaration
protected virtual object? GetBasedOn(object value)
Parameters
Type Name Description
object value

The value to check.

Returns
Type Description
object

The object it's based on.

Implements

Newtonsoft.Json.Serialization.IContractResolver
  • View Source
In this article
Back to top Generated by DocFX