mirror of
https://github.com/chylex/.NET-Community-Toolkit.git
synced 2024-11-24 07:42:45 +01:00
25 lines
1.4 KiB
C#
25 lines
1.4 KiB
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.
|
|
|
|
namespace CommunityToolkit.Mvvm.SourceGenerators.ComponentModel.Models;
|
|
|
|
/// <summary>
|
|
/// A model with gathered info on a given <c>ObservableRecipientAttribute</c> instance.
|
|
/// </summary>
|
|
/// <param name="TypeName">The type name of the type being annotated.</param>
|
|
/// <param name="HasExplicitConstructors">Whether or not the target type has explicit constructors.</param>
|
|
/// <param name="IsAbstract">Whether or not the target type is abstract.</param>
|
|
/// <param name="IsObservableValidator">Whether or not the target type inherits from <c>ObservableValidator</c>.</param>
|
|
/// <param name="IsRequiresUnreferencedCodeAttributeAvailable">Whether or not the <c>RequiresUnreferencedCodeAttribute</c> type is available.</param>
|
|
/// <param name="HasOnActivatedMethod">Whether the target type has a custom <c>OnActivated()</c> method.</param>
|
|
/// <param name="HasOnDeactivatedMethod">Whether the target type has a custom <c>OnDeactivated()</c> method.</param>
|
|
public sealed record ObservableRecipientInfo(
|
|
string TypeName,
|
|
bool HasExplicitConstructors,
|
|
bool IsAbstract,
|
|
bool IsObservableValidator,
|
|
bool IsRequiresUnreferencedCodeAttributeAvailable,
|
|
bool HasOnActivatedMethod,
|
|
bool HasOnDeactivatedMethod);
|