Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SendGrid package throw error on assembly.GetTypes() method #37

Open
LOKCHAU8 opened this issue Oct 28, 2020 · 0 comments
Open

SendGrid package throw error on assembly.GetTypes() method #37

LOKCHAU8 opened this issue Oct 28, 2020 · 0 comments

Comments

@LOKCHAU8
Copy link

I have downloaded the SendGrid package & tested on my sample test program using the Web API method with C#.
The email work fine. But When I integrate it into my production project, My project load up & it check all the
Assemblies load & the appropriate actions.

Here is my C# ccode:-
public static IEnumerable GetAllTypesImplementingType(
Type implementingType,
Assembly[] assemblies)
{
return (from assembly in assemblies
from type in assembly.GetTypes()
where (implementingType.IsAssignableFrom(type)) && (implementingType != type)
select type).ToList();
}

I have 167 dll in my project, none fail on the assembly.GetTypes() method.
Why SendGrid.dll throw an error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant