// Analyze the Lambda expression's generic type private void AnalyzeLambdaExpressionType(SyntaxNodeAnalysisContext context, GenericNameSyntax genericTypeofLambdaFunc) { if (genericTypeofLambdaFunc.GetType().Equals(typeof(GenericNameSyntax))) { foreach (var argument in genericTypeofLambdaFunc.TypeArgumentList.Arguments) { var argumentNameSyntax = argument as IdentifierNameSyntax; if (argumentNameSyntax?.Identifier.Text == "MD5") { var argumentSymbol = context.SemanticModel.GetSymbolInfo(argument).Symbol as INamedTypeSymbol; CheckType(argumentSymbol, context, argument.GetLocation()); } } } }