Show / Hide Table of Contents

Class ExportStringBuilder

An export string builder.

Inheritance
System.Object
ExportStringBuilder
Namespace: Microsoft.Health.Fhir.SpecManager.Language
Assembly: Microsoft.Health.Fhir.SpecManager.dll
Syntax
public class ExportStringBuilder : object

Constructors

| Improve this Doc View Source

ExportStringBuilder()

Initializes a new instance of the ExportStringBuilder class.

Declaration
public ExportStringBuilder()

Properties

| Improve this Doc View Source

CharactersPerIndentation

Gets the characters per indentation level.

Declaration
public int CharactersPerIndentation { get; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

Indentation

Gets the current level of indentation.

Declaration
public int Indentation { get; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

IndentationChar

Gets the indentation character.

Declaration
public char IndentationChar { get; }
Property Value
Type Description
System.Char

Methods

| Improve this Doc View Source

Append(ExportStringBuilder)

Appends a sb.

Declaration
public void Append(ExportStringBuilder sb)
Parameters
Type Name Description
ExportStringBuilder sb

The string builder.

| Improve this Doc View Source

CloseScope(String)

Closes a scope (decreases indent, then writes literal on a line).

Declaration
public void CloseScope(string closeLiteral = "}")
Parameters
Type Name Description
System.String closeLiteral

(Optional) The close literal.

| Improve this Doc View Source

DecreaseIndent()

Decrease indent.

Declaration
public void DecreaseIndent()
| Improve this Doc View Source

IncreaseIndent()

Increase indent.

Declaration
public void IncreaseIndent()
| Improve this Doc View Source

OpenScope(String)

Opens a scope (writes literal on a line, then indents).

Declaration
public void OpenScope(string openLiteral = "{")
Parameters
Type Name Description
System.String openLiteral

(Optional) The scope open literal.

| Improve this Doc View Source

ReopenScope(String)

Reopens a scope (decreases indent, writes a literal, then increases indent).

Declaration
public void ReopenScope(string literal)
Parameters
Type Name Description
System.String literal

The literal.

| Improve this Doc View Source

SetCharsPerIndentation(Int32)

Sets characters per indentation.

Declaration
public void SetCharsPerIndentation(int charsPerIndentLevel)
Parameters
Type Name Description
System.Int32 charsPerIndentLevel

The characters per indent level.

| Improve this Doc View Source

SetIndent(Int32)

Sets an indent.

Declaration
public void SetIndent(int level)
Parameters
Type Name Description
System.Int32 level

The level.

| Improve this Doc View Source

SetIndentationChar(Char)

Sets indentation character.

Declaration
public void SetIndentationChar(char indentChar)
Parameters
Type Name Description
System.Char indentChar

The indent character.

| Improve this Doc View Source

ToString()

Returns a string that represents the current object.

Declaration
public override string ToString()
Returns
Type Description
System.String

A string that represents the current object.

| Improve this Doc View Source

Write(String)

Writes.

Declaration
public void Write(string value)
Parameters
Type Name Description
System.String value

The value.

| Improve this Doc View Source

WriteIndented(String)

Writes a value, indented.

Declaration
public void WriteIndented(string value)
Parameters
Type Name Description
System.String value

The value.

| Improve this Doc View Source

WriteLine(String)

Writes a line.

Declaration
public void WriteLine(string value)
Parameters
Type Name Description
System.String value

The value.

| Improve this Doc View Source

WriteLineIndented(String)

Writes a value, indented.

Declaration
public void WriteLineIndented(string value)
Parameters
Type Name Description
System.String value

The value.

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX