ããã
// åæã C#-7.0 using System.Windows.Controls; var c = new Control(); if ( c is Label l ) Console.WriteLine( $"Label.Content={l.Content}" ); if ( c is TextBlock t ) // <--ããã§ã³ã³ãã¤ã«ã¨ã©ã¼ãçãã¦ãããã Console.WriteLine( $"TextBloâ¦