Got at least one data fetching method working; turns out, we can't use a patched LogicStack to get the data

This commit is contained in:
2026-01-14 22:11:11 +01:00
parent 40a8431464
commit 3f7122d30a
350 changed files with 41444 additions and 119 deletions

View File

@@ -0,0 +1,20 @@
using System;
namespace EmbedIO.Utilities
{
/// <summary>
/// Provides extension methods for types implementing <see cref="IComponentCollection{T}"/>.
/// </summary>
public static class ComponentCollectionExtensions
{
/// <summary>
/// Adds the specified component to a collection, without giving it a name.
/// </summary>
/// <typeparam name="T">The type of components in the collection.</typeparam>
/// <param name="this">The <see cref="IComponentCollection{T}" /> on which this method is called.</param>
/// <param name="component">The component to add.</param>
/// <exception cref="NullReferenceException"><paramref name="this" /> is <see langword="null" />.</exception>
/// <seealso cref="IComponentCollection{T}.Add" />
public static void Add<T>(this IComponentCollection<T> @this, T component) => @this.Add(null, component);
}
}