• Articles
  • Api Documentation
Show / Hide Table of Contents
  • Dapplo.HttpExtensions
    • AuthorizationExtensions
    • HttpBehaviour
    • HttpBehaviourExtensions
    • HttpClientExtensions
    • HttpContentExtensions
    • HttpExtensionsGlobals
    • HttpRequestMessageConfiguration
    • HttpRequestMessageExtensions
    • HttpResponse
    • HttpResponse<TResponse, TErrorResponse>
    • HttpResponse<TResponse>
    • HttpResponseMessageExtensions
    • HttpResponseWithError<TErrorResponse>
    • IChangeableHttpBehaviour
    • IHttpBehaviour
    • IHttpContentConverter
    • IHttpRequestConfiguration
    • IHttpSettings
    • IJsonSerializer
    • MiscExtensions
    • UriActionExtensions
    • UriModifyExtensions
    • UriParseExtensions
  • Dapplo.HttpExtensions.ContentConverter
    • ByteArrayHttpContentConverter
    • DefaultJsonHttpContentConverter
    • DefaultJsonHttpContentConverterConfiguration
    • FormUriEncodedContentConverter
    • StreamHttpContentConverter
    • StringConfiguration
    • StringHttpContentConverter
    • SyndicationFeedHttpContentConverter
    • XDocumentHttpContentConverter
  • Dapplo.HttpExtensions.Extensions
    • EnumExtensions
    • HttpBehaviourExtensions
    • StringExtensions
    • TypeExtensions
  • Dapplo.HttpExtensions.Factory
    • HttpClientFactory
    • HttpContentFactory
    • HttpMessageHandlerFactory
    • HttpRequestMessageFactory
    • WebProxyFactory
  • Dapplo.HttpExtensions.JsonNet
    • JsonNetJsonSerializer
    • ReadOnlyConsideringContractResolver
  • Dapplo.HttpExtensions.JsonSimple
    • DataContractJsonSerializerStrategy
    • DefaultJsonHttpContentConverter
    • IJsonSerializerStrategy
    • JsonExtensionDataAttribute
    • PocoJsonSerializerStrategy
    • SimpleJson
    • SimpleJsonSerializer
  • Dapplo.HttpExtensions.Listener
    • HttpListenerContextExtensions
    • ListenerPortExtensions
    • UriHttpListenerExtensions
  • Dapplo.HttpExtensions.OAuth
    • AuthorizeModes
    • BaseOAuthSettings
    • GrantTypes
    • ICodeReceiverSettings
    • IOAuth1Token
    • IOAuth2Token
    • IOAuthCodeReceiver
    • OAuth1HttpBehaviour
    • OAuth1HttpBehaviourFactory
    • OAuth1HttpMessageHandler
    • OAuth1Parameters
    • OAuth1RequestConfiguration
    • OAuth1Settings
    • OAuth1SignatureTransports
    • OAuth1SignatureTypes
    • OAuth1Token
    • OAuth2HttpBehaviourFactory
    • OAuth2HttpMessageHandler
    • OAuth2Settings
    • OAuth2TokenResponse
    • OAuthExtensions
  • Dapplo.HttpExtensions.OAuth.CodeReceivers
    • EmbeddedBrowserCodeReceiver
  • Dapplo.HttpExtensions.OAuth.Desktop
    • OAuthLoginForm
  • Dapplo.HttpExtensions.Support
    • HttpPartAttribute
    • HttpParts
    • HttpRequestAttribute
    • HttpResponseAttribute
    • HttpSettings
    • MediaTypes
    • ProgressStream
    • ProgressStreamReport
  • Dapplo.HttpExtensions.SystemTextJson
    • SystemTextJsonSerializer
  • Dapplo.HttpExtensions.WinForms.ContentConverter
    • BitmapConfiguration
    • BitmapHttpContentConverter
  • Dapplo.HttpExtensions.Wpf.ContentConverter
    • BitmapSourceConfiguration
    • BitmapSourceHttpContentConverter

Class ReadOnlyConsideringContractResolver

This takes care that the members are only serialized when there is no ReadOnlyAttribute

Inheritance
System.Object
Newtonsoft.Json.Serialization.DefaultContractResolver
ReadOnlyConsideringContractResolver
Implements
Newtonsoft.Json.Serialization.IContractResolver
Inherited Members
Newtonsoft.Json.Serialization.DefaultContractResolver.ResolveContract(System.Type)
Newtonsoft.Json.Serialization.DefaultContractResolver.GetSerializableMembers(System.Type)
Newtonsoft.Json.Serialization.DefaultContractResolver.CreateObjectContract(System.Type)
Newtonsoft.Json.Serialization.DefaultContractResolver.CreateConstructorParameters(System.Reflection.ConstructorInfo, Newtonsoft.Json.Serialization.JsonPropertyCollection)
Newtonsoft.Json.Serialization.DefaultContractResolver.CreatePropertyFromConstructorParameter(Newtonsoft.Json.Serialization.JsonProperty, System.Reflection.ParameterInfo)
Newtonsoft.Json.Serialization.DefaultContractResolver.ResolveContractConverter(System.Type)
Newtonsoft.Json.Serialization.DefaultContractResolver.CreateDictionaryContract(System.Type)
Newtonsoft.Json.Serialization.DefaultContractResolver.CreateArrayContract(System.Type)
Newtonsoft.Json.Serialization.DefaultContractResolver.CreatePrimitiveContract(System.Type)
Newtonsoft.Json.Serialization.DefaultContractResolver.CreateLinqContract(System.Type)
Newtonsoft.Json.Serialization.DefaultContractResolver.CreateISerializableContract(System.Type)
Newtonsoft.Json.Serialization.DefaultContractResolver.CreateDynamicContract(System.Type)
Newtonsoft.Json.Serialization.DefaultContractResolver.CreateStringContract(System.Type)
Newtonsoft.Json.Serialization.DefaultContractResolver.CreateContract(System.Type)
Newtonsoft.Json.Serialization.DefaultContractResolver.CreateProperties(System.Type, Newtonsoft.Json.MemberSerialization)
Newtonsoft.Json.Serialization.DefaultContractResolver.CreateMemberValueProvider(System.Reflection.MemberInfo)
Newtonsoft.Json.Serialization.DefaultContractResolver.ResolvePropertyName(System.String)
Newtonsoft.Json.Serialization.DefaultContractResolver.ResolveExtensionDataName(System.String)
Newtonsoft.Json.Serialization.DefaultContractResolver.ResolveDictionaryKey(System.String)
Newtonsoft.Json.Serialization.DefaultContractResolver.GetResolvedPropertyName(System.String)
Newtonsoft.Json.Serialization.DefaultContractResolver.DynamicCodeGeneration
Newtonsoft.Json.Serialization.DefaultContractResolver.DefaultMembersSearchFlags
Newtonsoft.Json.Serialization.DefaultContractResolver.SerializeCompilerGeneratedMembers
Newtonsoft.Json.Serialization.DefaultContractResolver.IgnoreSerializableInterface
Newtonsoft.Json.Serialization.DefaultContractResolver.IgnoreSerializableAttribute
Newtonsoft.Json.Serialization.DefaultContractResolver.IgnoreIsSpecifiedMembers
Newtonsoft.Json.Serialization.DefaultContractResolver.IgnoreShouldSerializeMembers
Newtonsoft.Json.Serialization.DefaultContractResolver.NamingStrategy
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Dapplo.HttpExtensions.JsonNet
Assembly: Dapplo.HttpExtensions.JsonNet.dll
Syntax
public class ReadOnlyConsideringContractResolver : DefaultContractResolver, IContractResolver

Methods

| Improve this Doc View Source

CreateProperty(MemberInfo, MemberSerialization)

This takes care that the members are only serialized when there is no ReadOnlyAttribute

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

MemberInfo

Newtonsoft.Json.MemberSerialization memberSerialization

MemberSerialization

Returns
Type Description
Newtonsoft.Json.Serialization.JsonProperty

JsonProperty

Overrides
Newtonsoft.Json.Serialization.DefaultContractResolver.CreateProperty(System.Reflection.MemberInfo, Newtonsoft.Json.MemberSerialization)

Implements

Newtonsoft.Json.Serialization.IContractResolver
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © Dapplo