Attribute1 Attribute 메타데이터를 코드에 추가하는 데 사용되는 구조체 1. Obsolete : 클래스나 메서드가 더 이상 사용되지 않고 대체될 것임을 표시class Program{ // ObsoleteMethod => Warning [Obsolete("삭제 예정. ModifiedMethod() 추천")] public static void ObsoleteMethod() { Console.WriteLine("삭제 예정 함수(경고)"); } // ObsoleteMethod => Error [Obsolete("삭제 예정. ModifiedMethod() 사용 필수", true)] public static void ObsoleteMethod() { Console.WriteLine("삭제 예.. 2024. 5. 11. 이전 1 다음