null
public static string ToTypeString(object instance) { if (instance == null) { return "null"; } var instanceAsType = instance as Type; if (instanceAsType != null) { return instanceAsType.Name; } return instance.GetType().Name; }