JsonAdminCommentPreserver Class

Utility methods for extracting mfadmin-compatible comments and preserving them and restoring them inside json structures.

Definition

Namespace: MFiles.VAF.Configuration.JsonMapping
Assembly: MFiles.VAF.Configuration (in MFiles.VAF.Configuration.dll) Version: 23.12.13247.3
C#
public class JsonAdminCommentPreserver
Inheritance
Object    JsonAdminCommentPreserver

Constructors

Methods

GetAdminComments Extracts mfadmin-compatible comments from a json structure.
GetPreservedComments Extracts a list of comments preserved in a non-mfadmin-compatible json structure.
PreserveComments(IEnumerableJsonAdminComment, JObject, String) Preserves the MFAdmin-compatible comments in the source JSON structure under a single property in the target structure.
PreserveComments(JObject, JObject, String) Preserves the MFAdmin-compatible comments in the source JSON structure under a single property in the target structure.
RestoreComments(IEnumerableJsonAdminComment, JObject) Restores the MFAdmin-compatible comments into the target JSON structure from preserved comments in the source JSON structure..
RestoreComments(JObject, JObject, String) Restores the MFAdmin-compatible comments into the target JSON structure from preserved comments in the source JSON structure..

See Also