Table of Contents

Class WorkspaceUtils

Namespace
C4.Net
Assembly
C4.Net.Client.dll

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

file FileInfo

a 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

workspace Workspace

the 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)

Parameters

workspace Workspace

the Workspace object to save

file FileInfo

a FileInfo object representing the location of the file to write the JSON definition