영어 공부/기타

프로그래밍 영어 공부 - C# string (5/n) - ==는 대소문자를 구별하는 비교 연산자다

manwon 2019. 5. 31. 23:54
반응형

[알림] 본 페이지는 microsoft.com에 나온 c# 영문서를 본인이 우리말로 번역한 것입니다. 이해를 위해서 의역을 한 곳도 있습니다. 잘못된 해석은 댓글로 알려주시면 감사하겠습니다.

string C# Reference [원문 링크]
string C# 레퍼런스

18. For other uses of the @ special character, see @-- verbatim identifier
@ 특수 문자를 다르게 사용하는 방법을 보고 싶다면 여기를 클릭 @--verbatim identifier.

19. For more information about strings in C#, see Strings.
C#의 string들에 대해서 더 많은 정보가 필요하다면 여기를 참조해라, Strings

Example

class SimpleStringTest
{
    string a="\u0068ello ";
    string b="world";
    Console.WriteLine(a+b);
    Console.WriteLine(a+b == "Hello World");
    // == performs a case-sensitive comparison
    // == 연산자는 대소문자를 구별하는 비교 연산자다 
}
/* Output:
    hello world
    False
*/

to be continued...
다음 포스팅에 계속...

반응형