C# 클래스 XSharp.CodeDom.XSharpCodeDomHelper

파일 보기 프로젝트 열기: X-Sharp/XSharpPublic 1 사용 예제들

Private Properties

프로퍼티 타입 설명
DumpExpression void
DumpStatement void
FindDesignerClass System.CodeDom.CodeTypeDeclaration
FindDesignerClass System.CodeDom.CodeTypeDeclaration
MergeCodeCompileUnit System.CodeDom.CodeCompileUnit
MergeCodeCompileUnit System.CodeDom.CodeCompileUnit
Write void
WriteIndent void
WriteLine void
WriteLineIndent void

공개 메소드들

메소드 설명
BuildDesignerFileName ( string prgFile ) : string

Return the FileName with .Designer inserted

DumpCodeCompileUnit ( CodeCompileUnit ccu, string FileName, bool append ) : void
FindFirstClass ( CodeCompileUnit ccu ) : CodeTypeDeclaration

Reading the CodeCompileUnit, enumerate all NameSpaces, enumerate All Types, searching for the first Class declaration

FindFirstClass ( CodeCompileUnit ccu, CodeNamespace &namespaceName ) : CodeTypeDeclaration
HasPartialClass ( CodeCompileUnit ccu, CodeNamespace &contextNameSpace, CodeTypeDeclaration &contextClass ) : bool

Reading the CodeCompileUnit, enumerate all NameSpaces, enumerate All Types, searching for the first Partial Class.

비공개 메소드들

메소드 설명
DumpExpression ( System.CodeDom.CodeExpression e ) : void
DumpStatement ( StreamWriter writer, CodeStatement s ) : void
FindDesignerClass ( CodeCompileUnit ccu ) : CodeTypeDeclaration

Reading the CodeCompileUnit, enumerate all NameSpaces, enumerate All Types, searching for the first Class that contains an InitializeComponent member

FindDesignerClass ( CodeCompileUnit ccu, CodeNamespace &namespaceName ) : CodeTypeDeclaration
MergeCodeCompileUnit ( CodeCompileUnit compileUnit, CodeCompileUnit designerCompileUnit ) : CodeCompileUnit

Merge both CodeCompileUnit. The main type (class) will come from designerCompileUnit

MergeCodeCompileUnit ( CodeCompileUnit mergedCodeCompileUnit, CodeCompileUnit compileUnit, CodeCompileUnit designerCompileUnit ) : CodeCompileUnit
Write ( string str ) : void
WriteIndent ( string str ) : void
WriteLine ( string str ) : void
WriteLineIndent ( string str ) : void

메소드 상세

BuildDesignerFileName() 공개 정적인 메소드

Return the FileName with .Designer inserted
public static BuildDesignerFileName ( string prgFile ) : string
prgFile string
리턴 string

DumpCodeCompileUnit() 정적인 공개 메소드

static public DumpCodeCompileUnit ( CodeCompileUnit ccu, string FileName, bool append ) : void
ccu System.CodeDom.CodeCompileUnit
FileName string
append bool
리턴 void

FindFirstClass() 공개 정적인 메소드

Reading the CodeCompileUnit, enumerate all NameSpaces, enumerate All Types, searching for the first Class declaration
public static FindFirstClass ( CodeCompileUnit ccu ) : CodeTypeDeclaration
ccu System.CodeDom.CodeCompileUnit
리턴 System.CodeDom.CodeTypeDeclaration

FindFirstClass() 공개 정적인 메소드

public static FindFirstClass ( CodeCompileUnit ccu, CodeNamespace &namespaceName ) : CodeTypeDeclaration
ccu System.CodeDom.CodeCompileUnit
namespaceName System.CodeDom.CodeNamespace
리턴 System.CodeDom.CodeTypeDeclaration

HasPartialClass() 공개 정적인 메소드

Reading the CodeCompileUnit, enumerate all NameSpaces, enumerate All Types, searching for the first Partial Class.
public static HasPartialClass ( CodeCompileUnit ccu, CodeNamespace &contextNameSpace, CodeTypeDeclaration &contextClass ) : bool
ccu System.CodeDom.CodeCompileUnit
contextNameSpace System.CodeDom.CodeNamespace The NameSpace in wich the partial Class is defined
contextClass System.CodeDom.CodeTypeDeclaration The found partial Class
리턴 bool