Class JsonContract
Inheritance
System.Object
JsonContract
Inherited Members
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()
Assembly : Bayat.Json.Runtime.dll
Syntax
public abstract class JsonContract
Constructors
|
Improve this Doc
View Source
JsonContract(Type)
Declaration
public JsonContract(Type underlyingType)
Parameters
Type
Name
Description
System.Type
underlyingType
Fields
|
Improve this Doc
View Source
ContractType
Declaration
public JsonContractType ContractType
Field Value
|
Improve this Doc
View Source
InternalReadType
Declaration
public ReadType InternalReadType
Field Value
|
Improve this Doc
View Source
IsConvertable
Declaration
public bool IsConvertable
Field Value
Type
Description
System.Boolean
|
Improve this Doc
View Source
IsEnum
Declaration
Field Value
Type
Description
System.Boolean
|
Improve this Doc
View Source
IsInstantiable
Declaration
public bool IsInstantiable
Field Value
Type
Description
System.Boolean
|
Improve this Doc
View Source
IsNullable
Declaration
Field Value
Type
Description
System.Boolean
|
Improve this Doc
View Source
IsReadOnlyOrFixedSize
Declaration
public bool IsReadOnlyOrFixedSize
Field Value
Type
Description
System.Boolean
|
Improve this Doc
View Source
IsSealed
Declaration
Field Value
Type
Description
System.Boolean
|
Improve this Doc
View Source
NonNullableUnderlyingType
Declaration
public Type NonNullableUnderlyingType
Field Value
Type
Description
System.Type
Properties
|
Improve this Doc
View Source
Converter
Declaration
public JsonConverter Converter { get; set; }
Property Value
|
Improve this Doc
View Source
CreatedType
Gets or sets the type created during deserialization.
Declaration
public Type CreatedType { get; set; }
Property Value
Type
Description
System.Type
The type created during deserialization.
|
Improve this Doc
View Source
DefaultCreator
Gets or sets the default creator method used to create the object.
Declaration
public Func<object> DefaultCreator { get; set; }
Property Value
Type
Description
System.Func <System.Object >
The default creator method used to create the object.
|
Improve this Doc
View Source
DefaultCreatorNonPublic
Gets or sets a value indicating whether the default creator is non public.
Declaration
public bool DefaultCreatorNonPublic { get; set; }
Property Value
Type
Description
System.Boolean
true
if the default object creator is non-public; otherwise, false
.
|
Improve this Doc
View Source
InternalConverter
Declaration
public JsonConverter InternalConverter { get; set; }
Property Value
|
Improve this Doc
View Source
IsReference
Gets or sets whether this type contract is serialized as a reference.
Declaration
public bool? IsReference { get; set; }
Property Value
Type
Description
System.Nullable <System.Boolean >
Whether this type contract is serialized as a reference.
|
Improve this Doc
View Source
OnDeserialized
Gets or sets the method called immediately after deserialization of the object.
Declaration
[Obsolete("This property is obsolete and has been replaced by the OnDeserializedCallbacks collection.")]
public MethodInfo OnDeserialized { get; set; }
Property Value
Type
Description
System.Reflection.MethodInfo
The method called immediately after deserialization of the object.
|
Improve this Doc
View Source
OnDeserializedCallbacks
Gets or sets all methods called immediately after deserialization of the object.
Declaration
public IList<SerializationCallback> OnDeserializedCallbacks { get; }
Property Value
Type
Description
System.Collections.Generic.IList <SerializationCallback >
The methods called immediately after deserialization of the object.
|
Improve this Doc
View Source
OnDeserializing
Gets or sets the method called during deserialization of the object.
Declaration
[Obsolete("This property is obsolete and has been replaced by the OnDeserializingCallbacks collection.")]
public MethodInfo OnDeserializing { get; set; }
Property Value
Type
Description
System.Reflection.MethodInfo
The method called during deserialization of the object.
|
Improve this Doc
View Source
OnDeserializingCallbacks
Gets or sets all methods called during deserialization of the object.
Declaration
public IList<SerializationCallback> OnDeserializingCallbacks { get; }
Property Value
Type
Description
System.Collections.Generic.IList <SerializationCallback >
The methods called during deserialization of the object.
|
Improve this Doc
View Source
OnError
Gets or sets the method called when an error is thrown during the serialization of the object.
Declaration
[Obsolete("This property is obsolete and has been replaced by the OnErrorCallbacks collection.")]
public MethodInfo OnError { get; set; }
Property Value
Type
Description
System.Reflection.MethodInfo
The method called when an error is thrown during the serialization of the object.
|
Improve this Doc
View Source
OnErrorCallbacks
Gets or sets all method called when an error is thrown during the serialization of the object.
Declaration
public IList<SerializationErrorCallback> OnErrorCallbacks { get; }
Property Value
Type
Description
System.Collections.Generic.IList <SerializationErrorCallback >
The methods called when an error is thrown during the serialization of the object.
|
Improve this Doc
View Source
OnSerialized
Gets or sets the method called after serialization of the object graph.
Declaration
[Obsolete("This property is obsolete and has been replaced by the OnSerializedCallbacks collection.")]
public MethodInfo OnSerialized { get; set; }
Property Value
Type
Description
System.Reflection.MethodInfo
The method called after serialization of the object graph.
|
Improve this Doc
View Source
OnSerializedCallbacks
Gets or sets all methods called after serialization of the object graph.
Declaration
public IList<SerializationCallback> OnSerializedCallbacks { get; }
Property Value
Type
Description
System.Collections.Generic.IList <SerializationCallback >
The methods called after serialization of the object graph.
|
Improve this Doc
View Source
OnSerializing
Gets or sets the method called before serialization of the object.
Declaration
[Obsolete("This property is obsolete and has been replaced by the OnSerializingCallbacks collection.")]
public MethodInfo OnSerializing { get; set; }
Property Value
Type
Description
System.Reflection.MethodInfo
The method called before serialization of the object.
|
Improve this Doc
View Source
OnSerializingCallbacks
Gets or sets all methods called before serialization of the object.
Declaration
public IList<SerializationCallback> OnSerializingCallbacks { get; }
Property Value
Type
Description
System.Collections.Generic.IList <SerializationCallback >
The methods called before serialization of the object.
|
Improve this Doc
View Source
UnderlyingType
Gets the underlying type for the contract.
Declaration
public Type UnderlyingType { get; }
Property Value
Type
Description
System.Type
The underlying type for the contract.
Methods
|
Improve this Doc
View Source
CreateSerializationCallback(MethodInfo)
Declaration
public static SerializationCallback CreateSerializationCallback(MethodInfo callbackMethodInfo)
Parameters
Type
Name
Description
System.Reflection.MethodInfo
callbackMethodInfo
Returns
|
Improve this Doc
View Source
CreateSerializationErrorCallback(MethodInfo)
Declaration
public static SerializationErrorCallback CreateSerializationErrorCallback(MethodInfo callbackMethodInfo)
Parameters
Type
Name
Description
System.Reflection.MethodInfo
callbackMethodInfo
Returns
|
Improve this Doc
View Source
InvokeOnDeserialized(Object, StreamingContext)
Declaration
public void InvokeOnDeserialized(object o, StreamingContext context)
Parameters
Type
Name
Description
System.Object
o
System.Runtime.Serialization.StreamingContext
context
|
Improve this Doc
View Source
InvokeOnDeserializing(Object, StreamingContext)
Declaration
public void InvokeOnDeserializing(object o, StreamingContext context)
Parameters
Type
Name
Description
System.Object
o
System.Runtime.Serialization.StreamingContext
context
|
Improve this Doc
View Source
InvokeOnError(Object, StreamingContext, ErrorContext)
Declaration
public void InvokeOnError(object o, StreamingContext context, ErrorContext errorContext)
Parameters
Type
Name
Description
System.Object
o
System.Runtime.Serialization.StreamingContext
context
ErrorContext
errorContext
|
Improve this Doc
View Source
InvokeOnSerialized(Object, StreamingContext)
Declaration
public void InvokeOnSerialized(object o, StreamingContext context)
Parameters
Type
Name
Description
System.Object
o
System.Runtime.Serialization.StreamingContext
context
|
Improve this Doc
View Source
InvokeOnSerializing(Object, StreamingContext)
Declaration
public void InvokeOnSerializing(object o, StreamingContext context)
Parameters
Type
Name
Description
System.Object
o
System.Runtime.Serialization.StreamingContext
context
Please enable JavaScript to view the comments powered by Disqus.