Class JsonDynamicContract
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 JsonDynamicContract : JsonContainerContract
Constructors
| Improve this Doc View SourceJsonDynamicContract(Type)
Initializes a new instance of the JsonDynamicContract class.
Declaration
public JsonDynamicContract(Type underlyingType)
Parameters
Type | Name | Description |
---|---|---|
System.Type | underlyingType | The underlying type for the contract. |
Properties
| Improve this Doc View SourceProperties
Gets the object's properties.
Declaration
public JsonPropertyCollection Properties { get; }
Property Value
Type | Description |
---|---|
JsonPropertyCollection | The object's properties. |
PropertyNameResolver
Gets or sets the property name resolver.
Declaration
public Func<string, string> PropertyNameResolver { get; set; }
Property Value
Type | Description |
---|---|
System.Func<System.String, System.String> | The property name resolver. |
Methods
| Improve this Doc View SourceTryGetMember(IDynamicMetaObjectProvider, String, out Object)
Declaration
public bool TryGetMember(IDynamicMetaObjectProvider dynamicProvider, string name, out object value)
Parameters
Type | Name | Description |
---|---|---|
System.Dynamic.IDynamicMetaObjectProvider | dynamicProvider | |
System.String | name | |
System.Object | value |
Returns
Type | Description |
---|---|
System.Boolean |
TrySetMember(IDynamicMetaObjectProvider, String, Object)
Declaration
public bool TrySetMember(IDynamicMetaObjectProvider dynamicProvider, string name, object value)
Parameters
Type | Name | Description |
---|---|---|
System.Dynamic.IDynamicMetaObjectProvider | dynamicProvider | |
System.String | name | |
System.Object | value |
Returns
Type | Description |
---|---|
System.Boolean |