© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
32 replies
engineertdog

Variable type passed to generic

Is there any way to get around this being an error?

Type type = Type.GetType("OSIsoft.PI.Net, PIThreadInfo");

return powershell.Invoke<type>()
Type type = Type.GetType("OSIsoft.PI.Net, PIThreadInfo");

return powershell.Invoke<type>()
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

✅ Generic nullable type
C#CC# / help
3y ago
✅ Creating a generic type based on a Type variable rather than a specific type
C#CC# / help
4y ago
Using pointers as generic a generic type
C#CC# / help
4y ago
✅ Casting from one generic type to another
C#CC# / help
4y ago