CODEKILLER

반응형

아래의 C# Coding Style을 참고하세요.

 

GitHub - dotnet/runtime: .NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.

.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps. - GitHub - dotnet/runtime: .NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.

github.com

> 파스칼식 Coding Standard (명명규칙)

// 첫글자 대문자 (중간에 단어 단위의 앞글자 대문자)
public string GetPhysicalAddress(
    string Street,
    string City,
    string State,
    string ZipCode);
    
 
// 인터페이스의 경우 앞글자 I 접두사를 적용하고 파스칼식 대/소문자를 사용 
public interface IWorkerQueue
{
}

> 카멜식 Coding Standard (명명규칙)

public class DataService
{
    // internal field 지정시, 대소문자 카멜식을 사용하고 접두사로 '_' 를 사용.
    private IWorkerQueue _workerQueue;
}

// static fileld의 경우는 's_' 를 접두사로 사용.
private static IWorkerQueue s_workerQueue;

 

반응형

공유하기

facebook twitter kakaoTalk kakaostory naver band