Table of Contents

Class StringFormatter

Namespace
Bonsai.ML.Python
Assembly
Bonsai.ML.Python.dll

Represents a C# to Python string formatter class.

public class StringFormatter
Inheritance
StringFormatter
Inherited Members

Constructors

StringFormatter()

Initializes a new instance of the StringFormatter class.

public StringFormatter()

Methods

Format(object)

Formats the specified object into a string that is consistent with Python syntax.

public string Format(object obj)

Parameters

obj object

The object to format.

Returns

string

A string that is consistent with Python syntax.

FormatToPython(object)

Formats the specified object into a string that is consistent with Python syntax.

public static string FormatToPython(object obj)

Parameters

obj object

The object to format.

Returns

string

A string that is consistent with Python syntax.