private static XAttribute[] GetAttributes(MixinEntity ee) { return(new[] { new XAttribute("Label", (ee.ToString() ?? "[null]") + Modified(ee)), new XAttribute("TypeName", ee.GetType().TypeName()), new XAttribute("Background", ColorExtensions.ToHtmlColor(ee.GetType().FullName.GetHashCode())), }); }