Class WorkspaceUtils
Provides convenience helpers for loading, saving, and printing workspace JSON.
public class WorkspaceUtils
- Inheritance
-
WorkspaceUtils
- Inherited Members
Methods
LoadWorkspaceFromJson(FileInfo)
Loads a workspace from a JSON definition saved as a file
public static Workspace LoadWorkspaceFromJson(FileInfo file)
Parameters
fileFileInfoa FileInfo object representing the location of the JSON definition
Returns
- Workspace
a Workspace object
PrintWorkspaceAsJson(Workspace)
Prints the given workspace as an indented JSON document.
public static void PrintWorkspaceAsJson(Workspace workspace)
Parameters
workspaceWorkspacethe Workspace object to be printed
SaveWorkspaceToJson(Workspace, FileInfo)
Saves a workspace to a JSON definition as a file.
public static void SaveWorkspaceToJson(Workspace workspace, FileInfo file)