Serializable
-
AttributeC# 2021. 7. 30. 11:50
Attribute -Compile 방식을 결정하거나 메타 데이터를 포함할 때 사용되는 Class -바로 다음 위치의 요소(Class, Method etc..)에 적용됨 -System이 제공하는 Common Attribute와 사용자가 정의는 Custom Attribute가 있음 기본 형식 [AttributeName(argument)] Class, Method, Property, Argument etc.. Common Attribute 1. [Conditional("Symbol")] -인수로 지정한 Symbol이 있으면 Method Compile, 없으면 Ignore 2. [DllImport("파일명.dll")] -외부 DLL의 함수 선언할 때 사용 Custom Attibute -Compile 방식이나 C..