SplatDev.Reflection.Helpers 1.0.2

dotnet add package SplatDev.Reflection.Helpers --version 1.0.2
                    
NuGet\Install-Package SplatDev.Reflection.Helpers -Version 1.0.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SplatDev.Reflection.Helpers" Version="1.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SplatDev.Reflection.Helpers" Version="1.0.2" />
                    
Directory.Packages.props
<PackageReference Include="SplatDev.Reflection.Helpers" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add SplatDev.Reflection.Helpers --version 1.0.2
                    
#r "nuget: SplatDev.Reflection.Helpers, 1.0.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package SplatDev.Reflection.Helpers@1.0.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=SplatDev.Reflection.Helpers&version=1.0.2
                    
Install as a Cake Addin
#tool nuget:?package=SplatDev.Reflection.Helpers&version=1.0.2
                    
Install as a Cake Tool

SplatDev.Reflection.Helpers

Reflection and attribute helper utilities for .NET applications.

What it provides

  • ReflectionHelpers — extension methods for type/property reflection:

    • GetAllProperties(Type) — walks interface hierarchies to include inherited properties
    • GetAssembly(name) — loads an assembly by name (defaults to executing assembly)
    • GetAssemblyType<T>(Assembly) — instantiates a type from an assembly
    • GetInstance(Type) / GetInstance<T>(Type) — creates instances via Activator
    • GetProperties(Assembly) — gets property info from assembly type
    • GetProperty(object, string) — gets PropertyInfo by name
    • GetType<T>(Assembly) — finds a type within an assembly
    • GetTypeInstance<T>()Activator.CreateInstance<T>() shorthand
    • GetTypes<T>(assemblyName) — finds all types matching T in an assembly
    • HasValue(PropertyInfo) — checks if a property declares a non-null value
    • Value(PropertyInfo) / Value<T>(PropertyInfo) — reads property values
    • Value<T, U>() — generic property value getter
    • ValueCollection<T>(PropertyInfo) / ValueCollection<T, U>(PropertyInfo) — reads collection/dictionary property values
  • AttributeHelpers — extension methods for attribute reflection:

    • GetClassAttributes(Type) — returns a dictionary of attribute properties for a class
    • GetPropertyAttributes<T>(Expression) — gets attribute values from a property via expression
    • Value<T>(Attribute, string) — reads a named value from an attribute instance

Note: GetCustomAttribute<T>() and HasAttribute<T>() wrappers were removed in favor of BCL equivalents (MemberInfo.GetCustomAttribute<T>()) available in net8.0+.

Namespace change

As of v1.1.0, the namespace changed from System.Reflection to SplatDev.Reflection to avoid IntelliSense collisions with the BCL. The generic Helper partial class was split into ReflectionHelpers and AttributeHelpers.

Before:

using System.Reflection; // included both BCL and SplatDev extensions
type.GetAttribute<MyAttr>();

After:

using System.Reflection; // BCL types only
using SplatDev.Reflection; // SplatDev extensions
type.GetCustomAttribute<MyAttr>(false);

Install

dotnet add package SplatDev.Reflection.Helpers

Target frameworks

Framework
net8.0
net10.0

SplatDev.Reflection.Helpers — part of the SplatDev.Umbraco.Plugins suite. Licensed under MIT. © SplatDev Ltda.

Changelog

1.0.2 — 2026-08-24

Removes a dashboard screenshot that showed an error toast. It was captured against a site where this plugin's API was unreachable, so it advertised a broken dashboard. No screenshot is better than a misleading one; a replacement will be taken against a working install.

1.0.1 — 2026-08-24

Package metadata only: the listing now carries an icon and search tags, and the project and repository links point at the organisation that actually hosts this code. No code changes.

1.0.0 — 2026-08-24

This package now keeps a changelog. Earlier releases predate it and are not reconstructed here — consult the repository history for those. From this version on, every release records what changed for someone using it.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.
  • net8.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on SplatDev.Reflection.Helpers:

Package Downloads
SplatDev.Database

Generic database service abstractions using NPoco for .NET applications

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.2 87 8/24/2026