Class JsonArrayContract
Contract details for a System.Type used by the JsonSerializer.
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()
Namespace: Bayat.Json.Serialization
Assembly: Bayat.Json.Runtime.dll
Syntax
public class JsonArrayContract : JsonContainerContract
Constructors
| Improve this Doc View SourceJsonArrayContract(Type)
Initializes a new instance of the JsonArrayContract class.
Declaration
public JsonArrayContract(Type underlyingType)
Parameters
Type | Name | Description |
---|---|---|
System.Type | underlyingType | The underlying type for the contract. |
Properties
| Improve this Doc View SourceCanDeserialize
Declaration
public bool CanDeserialize { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
CollectionItemType
Gets the System.Type of the collection items.
Declaration
public Type CollectionItemType { get; }
Property Value
Type | Description |
---|---|
System.Type | The System.Type of the collection items. |
HasParameterizedCreator
Gets a value indicating whether the creator has a parameter with the collection values.
Declaration
public bool HasParameterizedCreator { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
IsArray
Declaration
public bool IsArray { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsMultidimensionalArray
Gets a value indicating whether the collection type is a multidimensional array.
Declaration
public bool IsMultidimensionalArray { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
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. |
ParameterizedCreator
Declaration
public ObjectConstructor<object> ParameterizedCreator { get; }
Property Value
Type | Description |
---|---|
ObjectConstructor<System.Object> |
ShouldCreateWrapper
Declaration
public bool ShouldCreateWrapper { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc View SourceCreateTemporaryCollection()
Declaration
public IList CreateTemporaryCollection()
Returns
Type | Description |
---|---|
System.Collections.IList |
CreateWrapper(Object)
Declaration
public IWrappedCollection CreateWrapper(object list)
Parameters
Type | Name | Description |
---|---|---|
System.Object | list |
Returns
Type | Description |
---|---|
IWrappedCollection |