`` `` `` `Operator in Properties and Methods? " /> <code class=" language-csharp>public int MaxHealth => Memory[Address].IsValid ? Memory[Address].Read<int>(Offs.Life.MaxHp) : 0; 요약 </p> <p> </p> <of> 표현의 주요 멤버는 문법 사탕 특성으로, getter가 단일 표현을 나타내도록함으로써 속성과 방법을 단순화 할 수 있습니다. 그들은 getter 속성과 간단한 방법에만 간단한 문법을 제공합니다. <div class="code" style="position:relative; padding:0px; margin:0px;"><pre class="brush:php;toolbar:false"><code class="language-csharp">public int MaxHealth { get { return Memory[Address].IsValid ? Memory[Address].Read<int>(Offs.Life.MaxHp) : 0; } }</code>
위 내용은 속성과 방법의 C#`=>`연산자는 무엇입니까?의 상세 내용입니다. 자세한 내용은 PHP 중국어 웹사이트의 기타 관련 기사를 참조하세요!