зеркало из https://github.com/DeGsoft/maui-linux.git
34 строки
626 B
C#
34 строки
626 B
C#
using System;
|
|
using System.Diagnostics;
|
|
|
|
namespace Xamarin.Forms.CustomAttributes
|
|
{
|
|
[Conditional ("DEBUG")]
|
|
[AttributeUsage (
|
|
AttributeTargets.Class |
|
|
AttributeTargets.Event |
|
|
AttributeTargets.Property |
|
|
AttributeTargets.Method |
|
|
AttributeTargets.Delegate,
|
|
AllowMultiple = true
|
|
)]
|
|
public class UiTestAttribute : Attribute
|
|
{
|
|
public UiTestAttribute (Type formsType)
|
|
{
|
|
Type = formsType;
|
|
MemberName = "";
|
|
}
|
|
|
|
public UiTestAttribute (Type formsType, string memberName)
|
|
{
|
|
Type = formsType;
|
|
MemberName = memberName;
|
|
}
|
|
|
|
public Type Type { get; }
|
|
|
|
public string MemberName { get; }
|
|
}
|
|
}
|