C# 클래스 RssToolkit.Rss.CodeGeneration.RssCodeGenerator

Used for generating Code using CodeDom
파일 보기 프로젝트 열기: Throy/derp-octo-robot 1 사용 예제들

공개 메소드들

메소드 설명
GenerateCode ( RssDocumentBase rssDefinition, string outputLanguage, string namespaceName, string classNamePrefix, TextWriter outputCode, bool useBaseClass ) : void

Generates the code.

GenerateCode ( string codeXml, string url, string outputLanguage, string namespaceName, string classNamePrefix, TextWriter outputCode, bool useBaseClass ) : void

Generates the code.

GenerateCodeDomTree ( RssDocumentBase rssDefinition, string namespaceName, string classNamePrefix, CodeCompileUnit outputCodeCompileUnit, bool useBaseClass ) : void

Generates the code DOM tree.

GenerateCodeDomTree ( string codeXml, string url, string namespaceName, string classNamePrefix, CodeCompileUnit outputCodeCompileUnit, bool useBaseClass ) : void

Generates the code DOM tree.

비공개 메소드들

메소드 설명
AddCodeProperty ( string nodeName, System.Xml.XmlNodeType nodeType, CodeTypeReference propertyType, CodeTypeDeclaration classType, bool collection, string nameSpaceName ) : void
CodeNameFromRssName ( string rssName ) : string

Codes the name of the name from RSS.

CodeParamNameFromRssName ( string rssName ) : string

Codes the name of the param name from RSS.

CodePrivateNameFromRssName ( string rssName ) : string

Codes the name of the private name from RSS.

GenerateLoad ( CodeTypeDeclaration channelType, string url ) : void
GenerateLoadRssByUrl ( CodeTypeDeclaration channelType ) : void
GenerateLoadRssByXml ( CodeTypeDeclaration channelType ) : void
GenerateLoadRssByXmlTextReader ( CodeTypeDeclaration channelType ) : void
GenerateLoadRssItems ( CodeTypeDeclaration channelType, string itemTypeName ) : void
GenerateToDataSet ( CodeTypeDeclaration channelType ) : void
GenerateToXml ( CodeTypeDeclaration channelType ) : void
NamespaceContainsType ( CodeNamespace nameSpace, string typeName ) : bool

Namespaces the type of the contains.

RssCodeGenerator ( ) : System
TypeContainsProperty ( CodeTypeDeclaration type, string propertyToFind ) : bool

Types the contains property.

메소드 상세

GenerateCode() 공개 정적인 메소드

Generates the code.
public static GenerateCode ( RssDocumentBase rssDefinition, string outputLanguage, string namespaceName, string classNamePrefix, TextWriter outputCode, bool useBaseClass ) : void
rssDefinition RssDocumentBase The RSS definition.
outputLanguage string The output language.
namespaceName string Name of the namespace.
classNamePrefix string The class name prefix.
outputCode System.IO.TextWriter The output code.
useBaseClass bool if set to true [use base class].
리턴 void

GenerateCode() 공개 정적인 메소드

Generates the code.
public static GenerateCode ( string codeXml, string url, string outputLanguage, string namespaceName, string classNamePrefix, TextWriter outputCode, bool useBaseClass ) : void
codeXml string The code XML.
url string The URL.
outputLanguage string The output language.
namespaceName string Name of the namespace.
classNamePrefix string The class name prefix.
outputCode System.IO.TextWriter The output code.
useBaseClass bool if set to true [use base class].
리턴 void

GenerateCodeDomTree() 공개 정적인 메소드

Generates the code DOM tree.
public static GenerateCodeDomTree ( RssDocumentBase rssDefinition, string namespaceName, string classNamePrefix, CodeCompileUnit outputCodeCompileUnit, bool useBaseClass ) : void
rssDefinition RssDocumentBase The RSS definition.
namespaceName string Name of the namespace.
classNamePrefix string The class name prefix.
outputCodeCompileUnit System.CodeDom.CodeCompileUnit The output code compile unit.
useBaseClass bool if set to true [use base class].
리턴 void

GenerateCodeDomTree() 공개 정적인 메소드

Generates the code DOM tree.
public static GenerateCodeDomTree ( string codeXml, string url, string namespaceName, string classNamePrefix, CodeCompileUnit outputCodeCompileUnit, bool useBaseClass ) : void
codeXml string The code XML.
url string The URL.
namespaceName string Name of the namespace.
classNamePrefix string The class name prefix.
outputCodeCompileUnit System.CodeDom.CodeCompileUnit The output code compile unit.
useBaseClass bool if set to true [use base class].
리턴 void