int.TryParse합성당 int.TryPrase모든 것이 훌륭하지만, 단 한가지 문제가 있습니다. 코드를 사용하려면 최소한 두 줄이 필요합니다. int intValue; string stringValue = "123"; int.TryParse(stringValue, out intValue); .... 물론 저는 다음과 같은 일을 할 수 있습니다. string stringValue = "123"; int intValue = Convert.ToInt32(string.IsNullOrWhiteSpace(stringValue) ? 0 : stringValue); 한 줄의 암호로 어떻게 하면 마술을 부릴 수 있을까요?Parse에게 한 대의 라이너를 사용해 보십시오. 아니면 제3의 대안이 아직 있습니까? 감사합니..