Provides convenience functions to get reasonable string representations of objects and collections.
More...
|
static string | Stringify< T > (this IEnumerable< T > objs) |
| Provides a reasonable human-readable string representation of a collection.
|
static string | Stringify (this object obj) |
| Provides a reasonable human-readable string representation of an object.
|
static void | Dump (this object obj) |
| make-shift drop-in for LINQPad's .Dump(), to use, eg, from csharprepl
|
static string | Stringify (object obj, string nullRepresentation) |
| Provides a reasonable human-readable string representation of an object.
|
|
const string | DEFAULT_NULL_PLACEHOLDER = "null" |
| The default value put into a stringified result when null is encountered.
|
const string | SEEN_OBJECT_PLACEHOLDER = "(at:" |
| The placeholder put into a stringified result when a circular reference is encountered.
|
Provides convenience functions to get reasonable string representations of objects and collections.
◆ Dump()
void PeanutButter.Utils.Stringifier.Dump |
( |
this object | obj | ) |
|
|
static |
make-shift drop-in for LINQPad's .Dump(), to use, eg, from csharprepl
- Parameters
-
◆ Stringify() [1/2]
string PeanutButter.Utils.Stringifier.Stringify |
( |
object | obj, |
|
|
string | nullRepresentation ) |
|
static |
Provides a reasonable human-readable string representation of an object.
- Parameters
-
obj | |
nullRepresentation | How to represent null values - defaults to the string "null" |
- Returns
- Human-readable representation of object
◆ Stringify() [2/2]
string PeanutButter.Utils.Stringifier.Stringify |
( |
this object | obj | ) |
|
|
static |
Provides a reasonable human-readable string representation of an object.
- Parameters
-
- Returns
- Human-readable representation of object
◆ Stringify< T >()
Provides a reasonable human-readable string representation of a collection.
- Parameters
-
- Returns
- Human-readable representation of collection
The documentation for this class was generated from the following file:
- source/Utils/PeanutButter.Utils/Stringifier.cs