Beispiel #1
0
 /// <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());
 }
Beispiel #2
0
        public bool IsVisualizerAvailable(DebugType type)
        {
            bool typeIsAtomic = type.IsPrimitive || type.IsSystemDotObject() || type.IsEnum();

            return(!typeIsAtomic);
        }