C# 클래스 Catel.ObjectToStringHelper

Simple static class that turns an object to string.
파일 보기 프로젝트 열기: Catel/Catel 1 사용 예제들

공개 메소드들

메소드 설명
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