Class Dump
Utility class to dump all properties and fields of the object to the output
Inheritance
System.Object
Dump
Assembly: GCore.dll
Syntax
public class Dump : object
Constructors
|
Improve this Doc
View Source
Dump(Object)
Declaration
public Dump(object objectToDump)
Parameters
Type |
Name |
Description |
System.Object |
objectToDump |
|
|
Improve this Doc
View Source
Dump(Object, DumpSettings)
Declaration
public Dump(object objectToDump, DumpSettings settings)
Parameters
Type |
Name |
Description |
System.Object |
objectToDump |
|
DumpSettings |
settings |
|
|
Improve this Doc
View Source
Dump(Object, Type)
Declaration
public Dump(object objectToDump, Type type)
Parameters
Type |
Name |
Description |
System.Object |
objectToDump |
|
Type |
type |
|
|
Improve this Doc
View Source
Dump(Object, Type, DumpSettings)
Declaration
public Dump(object objectToDump, Type type, DumpSettings settings)
Parameters
Type |
Name |
Description |
System.Object |
objectToDump |
|
Type |
type |
|
DumpSettings |
settings |
|
|
Improve this Doc
View Source
Dump(Object, Type, String)
Declaration
public Dump(object objectToDump, Type type, string name)
Parameters
Type |
Name |
Description |
System.Object |
objectToDump |
|
Type |
type |
|
System.String |
name |
|
|
Improve this Doc
View Source
Dump(Object, Type, String, Int32)
Declaration
public Dump(object objectToDump, Type type, string name, int level)
Parameters
Type |
Name |
Description |
System.Object |
objectToDump |
|
Type |
type |
|
System.String |
name |
|
System.Int32 |
level |
|
|
Improve this Doc
View Source
Dump(Object, Type, String, Int32, DumpSettings)
Declaration
public Dump(object objectToDump, Type type, string name, int level, DumpSettings settings)
Parameters
Type |
Name |
Description |
System.Object |
objectToDump |
|
Type |
type |
|
System.String |
name |
|
System.Int32 |
level |
|
DumpSettings |
settings |
|
Methods
|
Improve this Doc
View Source
AddBloatProperty(Type, String)
Declaration
public static void AddBloatProperty(Type type, string propertyName)
Parameters
Type |
Name |
Description |
Type |
type |
|
System.String |
propertyName |
|
|
Improve this Doc
View Source
AddBloatType(String)
Declaration
public static void AddBloatType(string typename)
Parameters
Type |
Name |
Description |
System.String |
typename |
|
|
Improve this Doc
View Source
AddBloatType(Type)
Declaration
public static void AddBloatType(Type exc)
Parameters
Type |
Name |
Description |
Type |
exc |
|
|
Improve this Doc
View Source
AddHiddenProperty(Type, String)
Declaration
public static void AddHiddenProperty(Type type, string propertyName)
Parameters
Type |
Name |
Description |
Type |
type |
|
System.String |
propertyName |
|
|
Improve this Doc
View Source
AddTypeName(Type, String)
Declaration
public static void AddTypeName(Type type, string typename)
Parameters
Type |
Name |
Description |
Type |
type |
|
System.String |
typename |
|
|
Improve this Doc
View Source
GetFriendlyTypeName(Type)
Return a user-friendly type name of a given type. For example, int?[] instead of the default name
Declaration
public static string GetFriendlyTypeName(Type type)
Parameters
Type |
Name |
Description |
Type |
type |
Type
|
Returns
Type |
Description |
System.String |
Type name
|
|
Improve this Doc
View Source
GetFriendlyTypeName(Type, Boolean)
Return a user-friendly type name of a given type. For example, int?[] instead of the default name
Declaration
public static string GetFriendlyTypeName(Type type, bool fullName)
Parameters
Type |
Name |
Description |
Type |
type |
Type
|
System.Boolean |
fullName |
Return full name of the type
|
Returns
Type |
Description |
System.String |
Type name
|
|
Improve this Doc
View Source
ToDump(Object, Type)
Declaration
public static string ToDump(object objectToDump, Type type)
Parameters
Type |
Name |
Description |
System.Object |
objectToDump |
|
Type |
type |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
ToDump(Object, Type, String)
Declaration
public static string ToDump(object objectToDump, Type type, string name)
Parameters
Type |
Name |
Description |
System.Object |
objectToDump |
|
Type |
type |
|
System.String |
name |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
ToDump(Object, Type, String, DumpSettings)
Declaration
public static string ToDump(object objectToDump, Type type, string name, DumpSettings settings)
Parameters
Type |
Name |
Description |
System.Object |
objectToDump |
|
Type |
type |
|
System.String |
name |
|
DumpSettings |
settings |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
ToDump(Object, Type, String, Int32)
Declaration
public static string ToDump(object objectToDump, Type type, string name, int level)
Parameters
Type |
Name |
Description |
System.Object |
objectToDump |
|
Type |
type |
|
System.String |
name |
|
System.Int32 |
level |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
ToDump(Object, Type, String, Int32, DumpSettings)
Declaration
public static string ToDump(object objectToDump, Type type, string name, int level, DumpSettings settings)
Parameters
Type |
Name |
Description |
System.Object |
objectToDump |
|
Type |
type |
|
System.String |
name |
|
System.Int32 |
level |
|
DumpSettings |
settings |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
ToDump<T>(T)
Declaration
public static string ToDump<T>(T objectToDump)
Parameters
Type |
Name |
Description |
T |
objectToDump |
|
Returns
Type |
Description |
System.String |
|
Type Parameters
|
Improve this Doc
View Source
ToDump<T>(T, DumpSettings)
Declaration
public static string ToDump<T>(T objectToDump, DumpSettings settings)
Parameters
Returns
Type |
Description |
System.String |
|
Type Parameters
|
Improve this Doc
View Source
ToDump<T>(T, String)
Declaration
public static string ToDump<T>(T objectToDump, string name)
Parameters
Type |
Name |
Description |
T |
objectToDump |
|
System.String |
name |
|
Returns
Type |
Description |
System.String |
|
Type Parameters
|
Improve this Doc
View Source
ToDump<T>(T, String, DumpSettings)
Declaration
public static string ToDump<T>(T objectToDump, string name, DumpSettings settings)
Parameters
Type |
Name |
Description |
T |
objectToDump |
|
System.String |
name |
|
DumpSettings |
settings |
|
Returns
Type |
Description |
System.String |
|
Type Parameters
|
Improve this Doc
View Source
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Extension Methods