In the example, two strings, str1 and str2, are initialized in Main and passed to the SwapStrings method as parameters modified by the ref keyword.

 
  • 本示例中,str1和str2两个字符串在Main中初始化,并作为由ref关键字修改的参数传递给SwapStrings方法。
今日热词
目录 附录 查词历史