이중이 아닌것들
| Default | Permitted declared accessibilities
------------------------------------------------------------------
namespace | public | none (always implicitly public)
enum | public | public, internal
interface | internal | public, internal
class | internal | public, internal
struct | internal | public, internal
delegate | internal | public, internal
이중인것들
| Default | Permitted declared accessibilities
------------------------------------------------------------------
namespace | public | none (always implicitly public)
enum | public | All¹
interface | public | All¹
class | private | All¹
struct | private | public, internal, private²
delegate | private | All¹
constructor | private | All¹
enum member | public | none (always implicitly public)
interface member | public | none (always implicitly public)
method | private | All¹
field | private | All¹
user-defined operator| none | public (must be declared public)
출처 : https://stackoverflow.com/questions/2521459/what-are-the-default-access-modifiers-in-c
'프로그래밍 언어 > C#' 카테고리의 다른 글
C# 날짜 관련 함수(DateTime) (0) | 2023.06.26 |
---|---|
C# DateTime & TimeSpan (0) | 2023.06.26 |
C# 문자열 배열을 int 배열로 변환 (0) | 2023.06.16 |
C# Equals, ==, ReferenceEquals 비교 (0) | 2023.06.14 |
C# 복사본 만들기 (0) | 2023.06.13 |