AddYears 메소드는 주어진 DateTime 값에 지정된 수만큼 연을 더하는 기능을 제공합니다. 이 메소드는 C#의 내장된 날짜 및 시간 클래스인 DateTime 클래스의 일부분으로, 날짜에 대한 연산을 손쉽게 수행할 수 있는 도구입니다. AddYears 메소드를 사용하여 특정 날짜에 1년을 더하고 싶을 때 이 기능을 활용할 수 있습니다. 이 메소드는 연산 결과로 새로운 DateTime 객체를 반환하며, 원본 DateTime 값은 변경하지 않습니다.
C# (CSharp) this.AddYears - 30개의 예제가 발견되었습니다. 이것들은 오픈소스 프로젝트에서 추출된 C# (CSharp)의 this.AddYears에 대한 실세계 최고 등급의 예제들입니다. 예제들을 평가하여 예제의 품질 향상에 도움을 줄 수 있습니다.