src/VisualStudio/Core/Def/Implementation/InheritanceMargin/InheritanceMarginHelpers.cs
/// <summary>
/// Decide which moniker should be shown.
/// </summary>
Decide which moniker should be shown.
Decide which moniker should be shown .
public static ImageMoniker GetMoniker(InheritanceRelationship inheritanceRelationship)
        {
            if (inheritanceRelationship.HasFlag(InheritanceRelationship.ImplementingOverriding))
            {
                return KnownMonikers.ImplementingOverriding;
            }
            if (inheritanceRelationship.HasFlag(InheritanceRelationship.ImplementingOverridden))
            {
                return KnownMonikers.ImplementingOverridden;
            }
            if (inheritanceRelationship.HasFlag(InheritanceRelationship.Implemented))
            {
                return KnownMonikers.Implemented;
            }
            if (inheritanceRelationship.HasFlag(InheritanceRelationship.Implementing))
            {
                return KnownMonikers.Implementing;
            }
            if (inheritanceRelationship.HasFlag(InheritanceRelationship.Overridden))
            {
                return KnownMonikers.Overridden;
            }
            if (inheritanceRelationship.HasFlag(InheritanceRelationship.Overriding))
            {
                return KnownMonikers.Overriding;
            }
            throw ExceptionUtilities.UnexpectedValue(inheritanceRelationship);
        }
public static ImageMoniker GetMoniker ( InheritanceRelationship inheritanceRelationship ) { if ( inheritanceRelationship . HasFlag ( InheritanceRelationship . ImplementingOverriding ) ) { return KnownMonikers . ImplementingOverriding ; } if ( inheritanceRelationship . HasFlag ( InheritanceRelationship . ImplementingOverridden ) ) { return KnownMonikers . ImplementingOverridden ; } if ( inheritanceRelationship . HasFlag ( InheritanceRelationship . Implemented ) ) { return KnownMonikers . Implemented ; } if ( inheritanceRelationship . HasFlag ( InheritanceRelationship . Implementing ) ) { return KnownMonikers . Implementing ; } if ( inheritanceRelationship . HasFlag ( InheritanceRelationship . Overridden ) ) { return KnownMonikers . Overridden ; } if ( inheritanceRelationship . HasFlag ( InheritanceRelationship . Overriding ) ) { return KnownMonikers . Overriding ; } throw ExceptionUtilities . UnexpectedValue ( inheritanceRelationship ) ; }
Decide which moniker should be shown.
Decide which moniker should be shown .
//  If there are multiple targets and we have the corresponding compound image, use it // Otherwise, show the image based on this preference // The relationship is None. Don't know what image should be shown, throws
inheritanceRelationship
InheritanceRelationship