/// <summary> /// Checks whether given expression's type is atomic. /// </summary> /// <param name="expr">Expression.</param> /// <returns>True if expression's type is atomic, False otherwise.</returns> public static bool IsAtomic(this DebugType type) { return(type.IsPrimitive || type.FullName == "System.String" || type.IsEnum()); }
public bool IsVisualizerAvailable(DebugType type) { bool typeIsAtomic = type.IsPrimitive || type.IsSystemDotObject() || type.IsEnum(); return(!typeIsAtomic); }