Example #1
0
 public static bool IsInterfaceImplementation(this IParameterSymbol @this)
 {
     if (@this == null)
     {
         throw new ArgumentNullException(nameof(@this));
     }
     return(@this.ImplementedInterfaceMembers().Any());
 }
Example #2
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);
        }