Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Build cross-platform .NET applications with Uno Platform targeting WebAssembly, iOS, Android, macOS, Linux, and Windows from a single XAML/C# codebase. USE FOR: building cross-platform apps from a single C# and XAML codebase; targeting WebAssembly, iOS, Android, macOS, Linux, and Windows simultaneously; migrating WPF or UWP. DO NOT USE FOR: unrelated stacks; generic tasks that do not need this specific guidance. INVOKES: inspect the repository context, edit targeted files, and run relevant build
64% 91%+27 ptsof test cases passed
Passed 20 of 22 test cases with the skill, and 14 of 22 without it.
3 of 3 safety checks passed
public partial record ProductsModel(IProductService Products)
{
public IListFeed<Product> Items => ListFeed.Async(Products.GetAllAsync);
}
public partial record ProductDetailModel(IProductService Products)
{
public IState<int> ProductId => State<int>.Empty(this);
public IFeed<Product> Product => ProductId
.SelectAsync(async (id, ct) => await Products.GetAsync(id, ct));
}
public partial record OrderModel(IOrderService Orders)
{
public IState<string> CustomerName => State<string>.Value(this, () => string.Empty);
public IState<string> ProductId => State<string>.Value(this, () => string.Empty);
public IState<int> Quantity => State<int>.Value(this, () => 1);
public async ValueTask SubmitOrder(CancellationToken ct)
{
var order = new Order
{
CustomerName = await CustomerName,
ProductId = await ProductId,
Quantity = await Quantity
};
await Orders.CreateAsync(order, ct);
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.