Catel.ObjectToStringHelper.ToString C# (CSharp) 메소드

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
        public static string ToString(object instance)
        {
            return ToString(instance, DefaultCulture);
        }

Same methods

ObjectToStringHelper::ToString ( object instance, CultureInfo cultureInfo ) : string

Usage Example

예제 #1
0
 public static void IsNotNull(string paramName, object paramValue)
 {
     if (paramValue == null)
     {
         Log.Error("Argument '{0}' cannot be null", ObjectToStringHelper.ToString(paramName));
         throw new ArgumentNullException(paramName);
     }
 }
All Usage Examples Of Catel.ObjectToStringHelper::ToString