21 строка
574 B
C#
21 строка
574 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.
|
|
|
|
using CommunityToolkit.Common;
|
|
|
|
namespace SmokeTest
|
|
{
|
|
public sealed partial class MainPage
|
|
{
|
|
public MainPage()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void Button_Click(object sender, Windows.UI.Xaml.RoutedEventArgs e)
|
|
{
|
|
textBlock.Text = textBox.Text?.IsEmail().ToString() ?? "False";
|
|
}
|
|
}
|
|
} |