C# 클래스 ICSharpCode.NRefactory.CSharp.FormattingOptionsFactory

The formatting options factory creates pre defined formatting option styles.
파일 보기 프로젝트 열기: 0xd4d/NRefactory 1 사용 예제들

공개 메소드들

메소드 설명
CreateAllman ( ) : CSharpFormattingOptions

Creates allman indent style CSharpFormatting options used in Visual Studio.

CreateEmpty ( ) : CSharpFormattingOptions

Creates empty CSharpFormatting options.

CreateGNU ( ) : CSharpFormattingOptions

Like the Allman and Whitesmiths styles, GNU style puts braces on a line by themselves, indented by 2 spaces, except when opening a function definition, where they are not indented. In either case, the contained code is indented by 2 spaces from the braces. Popularised by Richard Stallman, the layout may be influenced by his background of writing Lisp code. In Lisp the equivalent to a block (a progn) is a first class data entity and giving it its own indent level helps to emphasize that, whereas in C a block is just syntax. Although not directly related to indentation, GNU coding style also includes a space before the bracketed list of arguments to a function.

CreateKRStyle ( ) : CSharpFormattingOptions

The K&R style, so named because it was used in Kernighan and Ritchie's book The C Programming Language, is commonly used in C. It is less common for C++, C#, and others.

CreateMono ( ) : CSharpFormattingOptions

Creates mono indent style CSharpFormatting options.

CreateSharpDevelop ( ) : CSharpFormattingOptions

Creates sharp develop indent style CSharpFormatting options.

CreateWhitesmiths ( ) : CSharpFormattingOptions

The Whitesmiths style, also called Wishart style to a lesser extent, is less common today than the previous three. It was originally used in the documentation for the first commercial C compiler, the Whitesmiths Compiler.

메소드 상세

CreateAllman() 공개 정적인 메소드

Creates allman indent style CSharpFormatting options used in Visual Studio.
public static CreateAllman ( ) : CSharpFormattingOptions
리턴 CSharpFormattingOptions

CreateEmpty() 공개 정적인 메소드

Creates empty CSharpFormatting options.
public static CreateEmpty ( ) : CSharpFormattingOptions
리턴 CSharpFormattingOptions

CreateGNU() 공개 정적인 메소드

Like the Allman and Whitesmiths styles, GNU style puts braces on a line by themselves, indented by 2 spaces, except when opening a function definition, where they are not indented. In either case, the contained code is indented by 2 spaces from the braces. Popularised by Richard Stallman, the layout may be influenced by his background of writing Lisp code. In Lisp the equivalent to a block (a progn) is a first class data entity and giving it its own indent level helps to emphasize that, whereas in C a block is just syntax. Although not directly related to indentation, GNU coding style also includes a space before the bracketed list of arguments to a function.
public static CreateGNU ( ) : CSharpFormattingOptions
리턴 CSharpFormattingOptions

CreateKRStyle() 공개 정적인 메소드

The K&R style, so named because it was used in Kernighan and Ritchie's book The C Programming Language, is commonly used in C. It is less common for C++, C#, and others.
public static CreateKRStyle ( ) : CSharpFormattingOptions
리턴 CSharpFormattingOptions

CreateMono() 공개 정적인 메소드

Creates mono indent style CSharpFormatting options.
public static CreateMono ( ) : CSharpFormattingOptions
리턴 CSharpFormattingOptions

CreateSharpDevelop() 공개 정적인 메소드

Creates sharp develop indent style CSharpFormatting options.
public static CreateSharpDevelop ( ) : CSharpFormattingOptions
리턴 CSharpFormattingOptions

CreateWhitesmiths() 공개 정적인 메소드

The Whitesmiths style, also called Wishart style to a lesser extent, is less common today than the previous three. It was originally used in the documentation for the first commercial C compiler, the Whitesmiths Compiler.
public static CreateWhitesmiths ( ) : CSharpFormattingOptions
리턴 CSharpFormattingOptions