Class MetadataContainerExtension
Provides extension behavior utilities for MetadataContainer
classes.
Inherited Members
Namespace: Core.Utilities
Syntax
public static class MetadataContainerExtension
Methods
ToFormattedString(MetadataContainer, Int32, Int32)
Converts a MetadataContainer
and its children format to prettified JSON.
Declaration
public static string ToFormattedString(this MetadataContainer metadataContainer, int indentation = 4, int level = 0)
Parameters
Type | Name | Description |
---|---|---|
MetadataContainer | metadataContainer | The metadata container root. |
Int32 | indentation | The amount of spaces for the indents. Default is 4. |
Int32 | level | The current level of the metadata container. Default is 0. |
Returns
Type | Description |
---|---|
String | The prettified JSON of the metadata container. |