Ejemplo n.º 1
0
        public void AddDebuggerDisplayAttribute(TargetClassDefinition targetClassDefinition)
        {
            ArgumentUtility.CheckNotNull("targetClassDefinition", targetClassDefinition);

            if (!targetClassDefinition.ReceivedAttributes.ContainsKey(typeof(DebuggerDisplayAttribute)) &&
                !targetClassDefinition.CustomAttributes.ContainsKey(typeof(DebuggerDisplayAttribute)))
            {
                var debuggerDisplayString = "{ToString(),nq} (mixed)";
                _attributeGenerator.AddDebuggerDisplayAttribute(_concreteTarget, debuggerDisplayString, debuggerDisplayNameStringOrNull: null);
            }
        }
        public void AddDebuggerAttributes()
        {
            var debuggerDisplayString = "Derived mixin: " + _identifier;

            _attributeGenerator.AddDebuggerDisplayAttribute(_type, debuggerDisplayString, null);
        }