🪴NachtgeistW 的数字花园🚧

Home

❯

000 计算机科学

❯

计算机语言

❯

CSharp

❯

in parameter modifier (csharp)

in parameter modifier (csharp)

2025年10月13日1分钟阅读

  • CSharp

in 提供了以只读方式传递引用参数的方式。当希望以引用的方式传递一个方法的参数,但又不希望方法修改该参数时,就可以对该参数使用 in 修饰符。该参数既可以是值也可以是变量。

Reference Links

  • How to use the in, out, and ref keywords in .NET Core | InfoWorld

See also

  • 各修饰符的传参类型
  • ref readonly

关系图谱

  • Reference Links
  • See also

反向链接

  • reference type (csharp)

Created with Quartz v4.5.1 © 2025

  • GitHub
  • Discord Community