IVersionVariableSerializer Interface

Summary

Serializes and deserializes GitVersionVariables to and from JSON and disk files.
graph BT Type["IVersionVariableSerializer"] class Type type-node

Syntax

public interface IVersionVariableSerializer

Methods

Name Value Summary
FromFile(string) GitVersionVariables
Deserializes a GitVersionVariables instance from the JSON file at filePath.
ToFile(GitVersionVariables, string) void
Writes gitVersionVariables as JSON to the file at filePath.
ToJson(GitVersionVariables) string
Serializes gitVersionVariables to a JSON string.

Extension Methods

Name Value Summary
NotNull<IVersionVariableSerializer>(string) T
Throws ArgumentNullException when value is null; otherwise returns the value.
GitHub