Ejemplo n.º 1
0
        public static IEnumerable <IParameterSymbol> OverriddenAndImplementedInterfaceMembers(this IParameterSymbol @this)
        {
            if (@this == null)
            {
                throw new ArgumentNullException(nameof(@this));
            }

            var result = new List <IParameterSymbol>();

            var overridden = @this.OverriddenMember();

            if (overridden != null)
            {
                result.Add(overridden);
                result.AddRange(OverriddenAndImplementedInterfaceMembers(overridden));
            }

            result.AddRange(@this.ImplementedInterfaceMembers());
            return(result);
        }