Table of Contents

Class ObjectUtils

Namespace
adas_core.Domain.Utils
Assembly
adas-core.Domain.dll

Provides static utility methods for common object-related operations.

public static class ObjectUtils
Inheritance
ObjectUtils
Inherited Members

Methods

ToStr(object?)

Converts an object to a string representation showing its type name and non-null property values in the format "TypeName[Property1: Value1,Property2: Value2]". Returns "[OBJ NULL]" when the object is null, and skips properties whose values are null.

public static string ToStr(this object? obj)

Parameters

obj object

The object to convert to a string. Can be null.

Returns

string

A string containing the type name followed by the object's non-null property values and their names.