Class StringFormatter
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
objectThe 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
objectThe object to format.
Returns
- string
A string that is consistent with Python syntax.