Contains

if

if ( ssn . Length == 9 && ! ssn . Contains ( "-" ) )