Spargine is a set of open-source assemblies and NuGet packages for .NET 8, developed and maintained by me since the release of .NET 2. These assemblies are integral to my projects and are currently in production at my company. You can access the source code and NuGet packages through the following links:
- GitHub: Spargine Releases
- NuGet: dotNetDaveNuGet
This documentation details the AssemblyExtensions class within the DotNetTips.Spargine.8.Extensions project, which provides a range of extension methods to enhance functionality related to type discovery and instantiation.
Methods
Here is a list of the current methods available in the ArrayExtensions class:
- GetAllInterfaces(): Gets all interfaces defined in the specified assembly.
- GetAllTypes(): Gets all types in the assembly. This method filters out abstract types and returns a read-only collection of the remaining types.
- GetInstances(): Gets all instances of a specified type within the assembly.
- GetTypes(): Gets the types from the specified assembly that are assignable to the specified type and are not abstract.
Summary
I am confident that these enhanced methods in Spargine will greatly benefit your projects by improving performance and reliability. Detailed benchmark results are available on GitHub. The success of open-source projects like Spargine depends significantly on community involvement. If you find these updates useful or have ideas for further improvements, I encourage you to contribute. Whether by submitting a pull request, reporting issues, or suggesting new features, your input is invaluable.
Together, we can continue to make Spargine a powerful and essential tool for the .NET community. Your feedback and suggestions are highly appreciated, so please share them in the comments section.
If you are interested in contributing to this project or have any questions, feel free to contact me via email at dotnetdave@live.com. Your support and collaboration are greatly appreciated!
Thank you for your support, and happy coding!
Pick up any books by David McCarter by going to Amazon.com: http://bit.ly/RockYourCodeBooks
Make a one-time donation
Make a monthly donation
Make a yearly donation
Choose an amount
Or enter a custom amount
Your contribution is appreciated.
Your contribution is appreciated.
Your contribution is appreciated.
DonateDonate monthlyDonate yearlyIf you liked this article, please buy David a cup of Coffee by going here: https://www.buymeacoffee.com/dotnetdave
© The information in this article is copywritten and cannot be preproduced in any way without express permission from David McCarter.
Discover more from dotNetTips.com
Subscribe to get the latest posts sent to your email.
