.NET-Community-Toolkit/CommunityToolkit.Mvvm.Sourc.../Input/Models/CanExecuteExpressionType.cs

32 lines
943 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.
namespace CommunityToolkit.Mvvm.SourceGenerators.Input.Models;
/// <summary>
/// A type describing the type of expression for the "CanExecute" property of a command.
/// </summary>
public enum CanExecuteExpressionType
{
/// <summary>
/// A method invocation lambda with discard: <c>_ => Method()</c>.
/// </summary>
MethodInvocationLambdaWithDiscard,
/// <summary>
/// A property access lambda: <c>() => Property</c>.
/// </summary>
PropertyAccessLambda,
/// <summary>
/// A property access lambda with discard: <c>_ => Property</c>.
/// </summary>
PropertyAccessLambdaWithDiscard,
/// <summary>
/// A method group expression: <c>Method</c>.
/// </summary>
MethodGroup
}