null
// ããã¯ã³ã³ãã¤ã«ã§ããªã(´ã»Ïã»ï½) // object -> T static public T As<T>( object o ) { return o as T; } // as T ã§ããããã«ã¯ T ã« class å¶ç´ãå¿ è¦ãããã¯ã³ã³ãã¤ã«ã§ããããæå¾ åä½ãããããããªãã // object(class=nullããä½ã) -> T st</t>â¦
// åæã 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â¦