Skip to main content

IToCodeString

Interface for classes having the ToCodeString() method.

public interface IToCodeString

Methods

ToCodeString(bool, int)

Returns a string containing C# code to create this object. Useful to copy and paste from a debugger into another test or notebook for further investigation.

string ToCodeString(bool formatted = false, int indentation = 0)

Parameters

formatted bool
Whether to format the generated code.

indentation int
The indentation level.

Returns

string