C# Класс Catel.ObjectToStringHelper

Simple static class that turns an object to string.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
ToFullTypeString ( object instance ) : string

Returns a string that represents the full type name of the instance. If the instance is null, this method will return "null". This method is great when the value of a property must be logged.

ToString ( object instance ) : string

Returns a string that represents the instance. If the instance is null, this method will return "null". This method is great when the value of a property must be logged.

ToString ( object instance, CultureInfo cultureInfo ) : string

Returns a string that represents the instance. If the instance is null, this method will return "null". This method is great when the value of a property must be logged.

ToTypeString ( object instance ) : string

Returns a string that represents the type name of the instance. If the instance is null, this method will return "null". This method is great when the value of a property must be logged.

Приватные методы

Метод Описание
ObjectToStringHelper ( ) : System

Initializes static members of the StringToObjectHelper class.

Описание методов

ToFullTypeString() публичный статический Метод

Returns a string that represents the full type name of the instance. If the instance is null, this method will return "null". This method is great when the value of a property must be logged.
public static ToFullTypeString ( object instance ) : string
instance object The instance.
Результат string

ToString() публичный статический Метод

Returns a string that represents the instance. If the instance is null, this method will return "null". This method is great when the value of a property must be logged.
public static ToString ( object instance ) : string
instance object The instance, can be null.
Результат string

ToString() публичный статический Метод

Returns a string that represents the instance. If the instance is null, this method will return "null". This method is great when the value of a property must be logged.
public static ToString ( object instance, CultureInfo cultureInfo ) : string
instance object The instance, can be null.
cultureInfo CultureInfo The culture information.
Результат string

ToTypeString() публичный статический Метод

Returns a string that represents the type name of the instance. If the instance is null, this method will return "null". This method is great when the value of a property must be logged.
public static ToTypeString ( object instance ) : string
instance object The instance.
Результат string