object x = 5; object y = new SolidBrush( Color.Azure ); if ( x is Int32 ) { MessageBox.Show( "x est un int" ); } if ( ( y as SolidBrush ) != null ) { MessageBox.Show( "y est un " + y.GetType( ).Name ); }
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question