Class Cid.CidJsonConverter
Conversion of a Cid to and from JSON.
Inherited Members
Namespace: Ipfs
Assembly: Ipfs.Core.dll
Syntax
public class CidJsonConverter : JsonConverter
Remarks
The JSON is just a single string value.
Properties
| Improve this Doc View SourceCanRead
Declaration
public override bool CanRead { get; }
Property Value
Type | Description |
---|---|
Boolean |
Overrides
Newtonsoft.Json.JsonConverter.CanRead
|
Improve this Doc
View Source
CanWrite
Declaration
public override bool CanWrite { get; }
Property Value
Type | Description |
---|---|
Boolean |
Overrides
Newtonsoft.Json.JsonConverter.CanWrite
Methods
| Improve this Doc View SourceCanConvert(Type)
Declaration
public override bool CanConvert(Type objectType)
Parameters
Type | Name | Description |
---|---|---|
Type | objectType |
Returns
Type | Description |
---|---|
Boolean |
Overrides
Newtonsoft.Json.JsonConverter.CanConvert(System.Type)
|
Improve this Doc
View Source
ReadJson(JsonReader, Type, Object, JsonSerializer)
Declaration
public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)
Parameters
Type | Name | Description |
---|---|---|
Newtonsoft.Json.JsonReader | reader | |
Type | objectType | |
Object | existingValue | |
Newtonsoft.Json.JsonSerializer | serializer |
Returns
Type | Description |
---|---|
Object |
Overrides
Newtonsoft.Json.JsonConverter.ReadJson(Newtonsoft.Json.JsonReader, System.Type, System.Object, Newtonsoft.Json.JsonSerializer)
|
Improve this Doc
View Source
WriteJson(JsonWriter, Object, JsonSerializer)
Declaration
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
Parameters
Type | Name | Description |
---|---|---|
Newtonsoft.Json.JsonWriter | writer | |
Object | value | |
Newtonsoft.Json.JsonSerializer | serializer |
Overrides
Newtonsoft.Json.JsonConverter.WriteJson(Newtonsoft.Json.JsonWriter, System.Object, Newtonsoft.Json.JsonSerializer)