Class JsonResourceGenerator
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: AltV.Net.ResourceGenerator
Assembly: AltV.Net.ResourceGenerator.dll
Syntax
public abstract class JsonResourceGenerator : ResourceGenerator
Properties
| Improve this Doc View SourceJsonOptions
Declaration
public virtual JsonSerializerOptions JsonOptions { get; }
Property Value
Type | Description |
---|---|
System.Text.Json.JsonSerializerOptions |
Methods
| Improve this Doc View SourceWriteFile(String, Stream)
Declaration
public override async Task WriteFile(string fileName, Stream stream)
Parameters
Type | Name | Description |
---|---|---|
System.String | fileName | |
System.IO.Stream | stream |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
Overrides
| Improve this Doc View SourceWriteJsonFile(String, Utf8JsonWriter, JsonSerializerOptions)
Declaration
public abstract Task WriteJsonFile(string fileName, Utf8JsonWriter jsonWriter, JsonSerializerOptions jsonSerializerOptions)
Parameters
Type | Name | Description |
---|---|---|
System.String | fileName | |
System.Text.Json.Utf8JsonWriter | jsonWriter | |
System.Text.Json.JsonSerializerOptions | jsonSerializerOptions |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |