mirror of
https://github.com/chylex/.NET-Community-Toolkit.git
synced 2024-11-27 16:42:46 +01:00
84c3e291ba
Also added attribution in ThirdPartyNotices.txt
20 lines
891 B
C#
20 lines
891 B
C#
// Licensed to the .NET Foundation under one or more agreements.
|
|
// The .NET Foundation licenses this file to you under the MIT license.
|
|
// See the LICENSE file in the project root for more information.
|
|
|
|
// This file is ported and adapted from ComputeSharp (Sergio0694/ComputeSharp),
|
|
// more info in ThirdPartyNotices.txt in the root of the project.
|
|
|
|
using System.Collections.Immutable;
|
|
using Microsoft.CodeAnalysis;
|
|
|
|
namespace CommunityToolkit.Mvvm.SourceGenerators.Models;
|
|
|
|
/// <summary>
|
|
/// A model representing a value and an associated set of diagnostic errors.
|
|
/// </summary>
|
|
/// <typeparam name="TValue">The type of the wrapped value.</typeparam>
|
|
/// <param name="Value">The wrapped value for the current result.</param>
|
|
/// <param name="Errors">The associated diagnostic errors, if any.</param>
|
|
internal sealed record Result<TValue>(TValue Value, ImmutableArray<Diagnostic> Errors);
|