• Manual
  • API Documentation
  • Bayat.Json.Serialization
  • JsonDictionaryContract

    Show / Hide Table of Contents
    • Bayat
      • UnityThread
    • Bayat.Core
      • AddReferenceWindow
      • AddReferenceWindow.Dependency
      • AssetReferenceResolver
      • AssetReferenceResolverEditor
      • BayatEditorStyles
      • CoreAssetPostProcessor
      • EditorApplicationUtility
      • MaterialPropertiesResolver
      • MaterialPropertiesResolverEditor
      • ReferenceCheckerWindow
      • ReferenceResolverMode
      • RuntimeMaterialProperties
      • RuntimeMaterialProperty
      • RuntimeMaterialPropertyType
      • SceneReferenceResolver
      • SceneReferenceResolverEditor
      • UnityEditorInternalException
    • Bayat.Core.EditorWindows
      • AssetReferenceManagerWindow
      • AssetReferenceManagerWindow.Styles
      • DatabaseMigrationWindow
      • DatabaseMigrationWindow.SceneMigrationStatus
      • DatabaseMigrationWindow.Styles
      • EditorWindowExtensions
      • EditorWindowUtility
      • EditorWindowWrapper
      • SceneReferenceManagerWindow
      • SceneReferenceManagerWindow.Styles
      • WindowClose
      • WrappedEditorWindow
    • Bayat.Core.Profiling
      • ProfiledSegment
      • ProfiledSegmentCollection
      • ProfilingScope
      • ProfilingUtility
    • Bayat.Core.Reflection
      • AssemblyExtensions
      • Codebase
      • RuntimeCodebase
      • TypeExtensions
      • TypeUtility
    • Bayat.Core.Text
      • StringExtensions
      • StringUtility
    • Bayat.Core.Utilities
      • ExceptionExtensions
      • GuidToReferenceDictionary
      • SerializableDictionary<TKey, TVal>
    • Bayat.Json
      • ConstructorHandling
      • CreateObjectConverterWindow
      • CreateObjectConverterWindow.Styles
      • DateFormatHandling
      • DateParseHandling
      • DateTimeZoneHandling
      • DefaultValueHandling
      • FloatFormatHandling
      • FloatParseHandling
      • Formatting
      • GameObjectSerializationHandler
      • GameObjectSerializationManagerTreeView
      • GameObjectSerializationManagerTreeView.Styles
      • GameObjectSerializationManagerWindow
      • GameObjectSerializationManagerWindow.Styles
      • IArrayPool<T>
      • IJsonLineInfo
      • JsonArrayAttribute
      • JsonConstructorAttribute
      • JsonContainerAttribute
      • JsonContainerType
      • JsonConvert
      • JsonConverter
      • JsonConverterAttribute
      • JsonConverterCollection
      • JsonDefaultSettingsWindow
      • JsonDefaultSettingsWindow.Styles
      • JsonDictionaryAttribute
      • JsonException
      • JsonExtensionDataAttribute
      • JsonIgnoreAttribute
      • JsonObjectAttribute
      • JsonPosition
      • JsonPropertyAttribute
      • JsonReader
      • JsonReader.State
      • JsonReaderException
      • JsonRequiredAttribute
      • JsonSerializationException
      • JsonSerializer
      • JsonSerializerSettings
      • JsonSerializerSettingsPreset
      • JsonTextReader
      • JsonTextWriter
      • JsonToken
      • JsonWriter
      • JsonWriter.State
      • JsonWriterException
      • MemberSerialization
      • MetadataPropertyHandling
      • MissingMemberHandling
      • NullValueHandling
      • ObjectCreationHandling
      • PreserveReferencesHandling
      • ReadType
      • ReferenceLoopHandling
      • Required
      • StringEscapeHandling
      • TypeNameHandling
      • WriteState
    • Bayat.Json.Bson
      • BsonArray
      • BsonBinary
      • BsonBinaryType
      • BsonBinaryWriter
      • BsonObject
      • BsonObjectId
      • BsonProperty
      • BsonReader
      • BsonRegex
      • BsonString
      • BsonToken
      • BsonType
      • BsonValue
      • BsonWriter
    • Bayat.Json.Converters
      • AnimatorConverter
      • AudioClipConverter
      • BinaryConverter
      • BoundsConverter
      • BsonObjectIdConverter
      • ColliderConverter
      • ColorConverter
      • CustomCreationConverter<T>
      • DateTimeConverterBase
      • DiscriminatedUnionConverter
      • EntityKeyMemberConverter
      • ExpandoObjectConverter
      • GameObjectConverter
      • HashSetConverter
      • IsoDateTimeConverter
      • JavaScriptDateTimeConverter
      • KeyValuePairConverter
      • MaterialConverter
      • MaterialConverter.JsonSerializedMaterialProperty
      • Matrix4x4Converter
      • MeshConverter
      • MeshConverter.SerializedIndices
      • MeshFilterConverter
      • ObjectJsonConverter
      • QuaternionConverter
      • RectConverter
      • RectTransformConverter
      • RegexConverter
      • RendererConverter
      • ResolutionConverter
      • ShaderConverter
      • SpriteConverter
      • StringEnumConverter
      • Texture2DConverter
      • TransformConverter
      • UnityBehaviourConverter
      • UnityComponentConverter
      • UnityMonoBehaviourConverter
      • UnityObjectConverter
      • UriConverter
      • VectorConverter
      • VersionConverter
      • XmlNodeConverter
    • Bayat.Json.Linq
      • CommentHandling
      • Extensions
      • IJEnumerable<T>
      • JArray
      • JConstructor
      • JContainer
      • JEnumerable<T>
      • JObject
      • JProperty
      • JPropertyDescriptor
      • JPropertyKeyedCollection
      • JRaw
      • JsonLoadSettings
      • JsonMergeSettings
      • JToken
      • JTokenEqualityComparer
      • JTokenReader
      • JTokenType
      • JTokenWriter
      • JValue
      • LineInfoHandling
      • MergeArrayHandling
      • MergeNullValueHandling
    • Bayat.Json.Linq.JsonPath
      • ArrayIndexFilter
      • ArrayMultipleIndexFilter
      • ArraySliceFilter
      • BooleanQueryExpression
      • CompositeExpression
      • FieldFilter
      • FieldMultipleFilter
      • JPath
      • PathFilter
      • QueryExpression
      • QueryFilter
      • QueryOperator
      • ScanFilter
    • Bayat.Json.Serialization
      • CachedAttributeGetter<T>
      • CamelCasePropertyNamesContractResolver
      • DefaultContractResolver
      • DefaultContractResolver.EnumerableDictionaryWrapper<TEnumeratorKey, TEnumeratorValue>
      • DefaultContractResolverState
      • DefaultReferenceResolver
      • DefaultSerializationBinder
      • DefaultSerializationBinder.TypeNameKey
      • DiagnosticsTraceWriter
      • ErrorContext
      • ErrorEventArgs
      • ExpressionValueProvider
      • ExtensionDataGetter
      • ExtensionDataSetter
      • IAttributeProvider
      • IContractResolver
      • IReferenceResolver
      • ITraceWriter
      • IValueProvider
      • JsonArrayContract
      • JsonContainerContract
      • JsonContract
      • JsonContractType
      • JsonDictionaryContract
      • JsonDynamicContract
      • JsonFormatterConverter
      • JsonISerializableContract
      • JsonLinqContract
      • JsonObjectContract
      • JsonPrimitiveContract
      • JsonProperty
      • JsonPropertyCollection
      • JsonSerializerInternalBase
      • JsonSerializerProxy
      • JsonSerializerReader
      • JsonSerializerReader.CreatorPropertyContext
      • JsonSerializerReader.PropertyPresence
      • JsonSerializerWriter
      • JsonStringContract
      • JsonTypeReflector
      • MemoryTraceWriter
      • ObjectConstructor<T>
      • OnErrorAttribute
      • ReflectionAttributeProvider
      • ReflectionValueProvider
      • ResolverContractKey
      • SerializationCallback
      • SerializationErrorCallback
      • TraceJsonReader
      • TraceJsonWriter
    • Bayat.Json.Shims
      • PreserveAttribute
    • Bayat.Json.Utilities
      • Base64Encoder
      • BidirectionalDictionary<TFirst, TSecond>
      • BufferUtils
      • CollectionUtils
      • CollectionWrapper<T>
      • ConvertUtils
      • ConvertUtils.ConvertResult
      • ConvertUtils.TypeConvertKey
      • Creator<T>
      • DateTimeParser
      • DateTimeUtils
      • DictionaryWrapper<TKey, TValue>
      • DynamicProxy<T>
      • DynamicProxyMetaObject<T>
      • DynamicUtils
      • DynamicUtils.BinderWrapper
      • EnumUtils
      • EnumValue<T>
      • ExpressionReflectionDelegateFactory
      • FSharpFunction
      • FSharpUtils
      • ImmutableCollectionsUtils
      • ImmutableCollectionsUtils.ImmutableCollectionTypeInfo
      • IWrappedCollection
      • IWrappedDictionary
      • JavaScriptUtils
      • JsonTokenUtils
      • LateBoundReflectionDelegateFactory
      • MathUtils
      • MethodCall<T, TResult>
      • MiscellaneousUtils
      • NoThrowExpressionVisitor
      • NoThrowGetBinderMember
      • NoThrowSetBinderMember
      • ParseResult
      • ParserTimeZone
      • PrimitiveTypeCode
      • PropertyNameTable
      • ReflectionDelegateFactory
      • ReflectionMember
      • ReflectionObject
      • ReflectionUtils
      • StringBuffer
      • StringReference
      • StringReferenceExtensions
      • StringUtils
      • ThreadSafeStore<TKey, TValue>
      • TypeInformation
      • ValidationUtils
    • Bayat.SaveSystem
      • AutoSave
      • AutoSaveManager
      • AutoSaveManager.LoadEvent
      • AutoSaveManager.SaveEvent
      • AutoSaveManagerWindow
      • AutoSaveManagerWindow.Styles
      • LoadEventArgs
      • LoadIntoEventArgs
      • SaveEventArgs
      • SaveSystemAPI
      • SaveSystemDefaultSettingsWindow
      • SaveSystemDefaultSettingsWindow.Styles
      • SaveSystemEditorResources
      • SaveSystemJsonSerializer
      • SaveSystemManager
      • SaveSystemSettings
      • SaveSystemSettingsPreset
      • WelcomeWindow
      • WelcomeWindow.Styles
    • Bayat.SaveSystem.Security
      • ISaveSystemEncryption
      • SaveSystemCryptoStream
      • SaveSystemSymmetricCryptoStream
      • SaveSystemSymmetricEncryption
    • Bayat.SaveSystem.Storage
      • BuiltInConnectionFactory
      • ConnectionStringFactory
      • FileStorageStream
      • IConnectionFactory
      • IStorage
      • IStorageStream
      • LocalDiskStorage
      • PlayerPrefsStorage
      • PlayerPrefsStorageStream
      • StorageBackup
      • StorageBase
      • StorageClearOperationResult
      • StorageConnectionString
      • StorageCopyOperationResult
      • StorageDeleteOperationResult
      • StorageFactory
      • StorageFullException
      • StorageInvalidIdentifierException
      • StorageItemNotFoundException
      • StorageListOptions
      • StorageMetaData
      • StorageMoveOperationResult
      • StorageOperationResult
      • StorageStream

    Class JsonDictionaryContract

    Contract details for a System.Type used by the JsonSerializer.

    Inheritance
    System.Object
    JsonContract
    JsonContainerContract
    JsonDictionaryContract
    Inherited Members
    JsonContainerContract.ItemContract
    JsonContainerContract.FinalItemContract
    JsonContainerContract.ItemConverter
    JsonContainerContract.ItemIsReference
    JsonContainerContract.ItemReferenceLoopHandling
    JsonContainerContract.ItemTypeNameHandling
    JsonContract.IsNullable
    JsonContract.IsConvertable
    JsonContract.IsEnum
    JsonContract.NonNullableUnderlyingType
    JsonContract.InternalReadType
    JsonContract.ContractType
    JsonContract.IsReadOnlyOrFixedSize
    JsonContract.IsSealed
    JsonContract.IsInstantiable
    JsonContract.UnderlyingType
    JsonContract.CreatedType
    JsonContract.IsReference
    JsonContract.Converter
    JsonContract.InternalConverter
    JsonContract.OnDeserializedCallbacks
    JsonContract.OnDeserializingCallbacks
    JsonContract.OnSerializedCallbacks
    JsonContract.OnSerializingCallbacks
    JsonContract.OnErrorCallbacks
    JsonContract.OnDeserialized
    JsonContract.OnDeserializing
    JsonContract.OnSerialized
    JsonContract.OnSerializing
    JsonContract.OnError
    JsonContract.DefaultCreator
    JsonContract.DefaultCreatorNonPublic
    JsonContract.InvokeOnSerializing(Object, StreamingContext)
    JsonContract.InvokeOnSerialized(Object, StreamingContext)
    JsonContract.InvokeOnDeserializing(Object, StreamingContext)
    JsonContract.InvokeOnDeserialized(Object, StreamingContext)
    JsonContract.InvokeOnError(Object, StreamingContext, ErrorContext)
    JsonContract.CreateSerializationCallback(MethodInfo)
    JsonContract.CreateSerializationErrorCallback(MethodInfo)
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Bayat.Json.Serialization
    Assembly: Bayat.Json.Runtime.dll
    Syntax
    public class JsonDictionaryContract : JsonContainerContract

    Constructors

    | Improve this Doc View Source

    JsonDictionaryContract(Type)

    Initializes a new instance of the JsonDictionaryContract class.

    Declaration
    public JsonDictionaryContract(Type underlyingType)
    Parameters
    Type Name Description
    System.Type underlyingType

    The underlying type for the contract.

    Properties

    | Improve this Doc View Source

    DictionaryKeyResolver

    Gets or sets the dictionary key resolver.

    Declaration
    public Func<string, string> DictionaryKeyResolver { get; set; }
    Property Value
    Type Description
    System.Func<System.String, System.String>

    The dictionary key resolver.

    | Improve this Doc View Source

    DictionaryKeyType

    Gets the System.Type of the dictionary keys.

    Declaration
    public Type DictionaryKeyType { get; }
    Property Value
    Type Description
    System.Type

    The System.Type of the dictionary keys.

    | Improve this Doc View Source

    DictionaryValueType

    Gets the System.Type of the dictionary values.

    Declaration
    public Type DictionaryValueType { get; }
    Property Value
    Type Description
    System.Type

    The System.Type of the dictionary values.

    | Improve this Doc View Source

    HasParameterizedCreator

    Gets a value indicating whether the creator has a parameter with the dictionary values.

    Declaration
    public bool HasParameterizedCreator { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if the creator has a parameter with the dictionary values; otherwise, false.

    | Improve this Doc View Source

    HasParameterizedCreatorInternal

    Declaration
    public bool HasParameterizedCreatorInternal { get; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    KeyContract

    Declaration
    public JsonContract KeyContract { get; set; }
    Property Value
    Type Description
    JsonContract
    | Improve this Doc View Source

    OverrideCreator

    Gets or sets the function used to create the object. When set this function will override DefaultCreator.

    Declaration
    public ObjectConstructor<object> OverrideCreator { get; set; }
    Property Value
    Type Description
    ObjectConstructor<System.Object>

    The function used to create the object.

    | Improve this Doc View Source

    ParameterizedCreator

    Declaration
    public ObjectConstructor<object> ParameterizedCreator { get; }
    Property Value
    Type Description
    ObjectConstructor<System.Object>
    | Improve this Doc View Source

    PropertyNameResolver

    Gets or sets the property name resolver.

    Declaration
    [Obsolete("PropertyNameResolver is obsolete. Use DictionaryKeyResolver instead.")]
    public Func<string, string> PropertyNameResolver { get; set; }
    Property Value
    Type Description
    System.Func<System.String, System.String>

    The property name resolver.

    | Improve this Doc View Source

    ShouldCreateWrapper

    Declaration
    public bool ShouldCreateWrapper { get; }
    Property Value
    Type Description
    System.Boolean

    Methods

    | Improve this Doc View Source

    CreateTemporaryDictionary()

    Declaration
    public IDictionary CreateTemporaryDictionary()
    Returns
    Type Description
    System.Collections.IDictionary
    | Improve this Doc View Source

    CreateWrapper(Object)

    Declaration
    public IWrappedDictionary CreateWrapper(object dictionary)
    Parameters
    Type Name Description
    System.Object dictionary
    Returns
    Type Description
    IWrappedDictionary
    • Improve this Doc
    • View Source
    • 0 Comments
    In This Article
    • Constructors
      • JsonDictionaryContract(Type)
    • Properties
      • DictionaryKeyResolver
      • DictionaryKeyType
      • DictionaryValueType
      • HasParameterizedCreator
      • HasParameterizedCreatorInternal
      • KeyContract
      • OverrideCreator
      • ParameterizedCreator
      • PropertyNameResolver
      • ShouldCreateWrapper
    • Methods
      • CreateTemporaryDictionary()
      • CreateWrapper(Object)