AgentMulder.ReSharper.Domain.Patterns.RegisterWithService.FromGenericArguments C# (CSharp) Method

FromGenericArguments() protected method

protected FromGenericArguments ( IInvocationExpression invocationExpression ) : IEnumerable
invocationExpression IInvocationExpression
return IEnumerable
        protected virtual IEnumerable<IComponentRegistration> FromGenericArguments(IInvocationExpression invocationExpression)
        {
            var first = invocationExpression.TypeArguments.First() as IDeclaredType;
            var last = invocationExpression.TypeArguments.Last() as IDeclaredType;

            return CreateRegistration(invocationExpression, first, last);
        }