C# 클래스 Microsoft.Scripting.Silverlight.DynamicScriptTags

Manages script tags that hold DLR-based code.
파일 보기 프로젝트 열기: jschementi/iron 1 사용 예제들

공개 메소드들

메소드 설명
DownloadExternalCode ( System.Action onComplete ) : void

Gathers the set of external script URIs, and asks the HttpVirtualFilesystem to download and cache the URIs. Calls the delegate when all downloads are complete.

DownloadHtmlPage ( System.Action onComplete ) : void
DynamicScriptTags ( Microsoft.Scripting.Silverlight.DynamicLanguageConfig langConfig ) : System
FetchScriptTags ( ) : void

Scrapes the HTML page and populates the "Code" structure.

GetLanguageByExtension ( string extension ) : string

Get the language by file extension; if it exists get back the "main" language name, otherwise null

GetLanguageByType ( string mimeType ) : string

Get the language by name; if it exists get back the "main" language name, otherwise null

GetLanguageNameFromType ( string type ) : string

Given a mime-type, return the language name

RemoveMargin ( string text ) : string

Removes as much of a margin as possible from "text".

Run ( Microsoft.Scripting.Silverlight.DynamicEngine engine ) : void

Runs the registered script tags against the DynamicEngine.

비공개 메소드들

메소드 설명
AlignSourceLines ( string partialSource, string fullSource ) : string
DownloadAndCache ( List uris, System.Action onComplete ) : void
GetLanguage ( string token, string[]>.Func getProperty ) : string
GetMarginSize ( string line ) : int

returns the number of spaces in the beginning of "line"

RemoveMargin ( string text, int firstLineMargin, bool firstLine, bool keepLines ) : string

Removes as much of a margin as possible from "text".

RemoveSpacesFromStart ( int n, string line ) : string

Removes "n" spaces from the start of "line". If not all those chars spaces, then "line" is returned in it's entirety.

메소드 상세

DownloadExternalCode() 공개 메소드

Gathers the set of external script URIs, and asks the HttpVirtualFilesystem to download and cache the URIs. Calls the delegate when all downloads are complete.
public DownloadExternalCode ( System.Action onComplete ) : void
onComplete System.Action
리턴 void

DownloadHtmlPage() 공개 메소드

public DownloadHtmlPage ( System.Action onComplete ) : void
onComplete System.Action
리턴 void

DynamicScriptTags() 공개 메소드

public DynamicScriptTags ( Microsoft.Scripting.Silverlight.DynamicLanguageConfig langConfig ) : System
langConfig Microsoft.Scripting.Silverlight.DynamicLanguageConfig
리턴 System

FetchScriptTags() 공개 메소드

Scrapes the HTML page and populates the "Code" structure.
public FetchScriptTags ( ) : void
리턴 void

GetLanguageByExtension() 공개 메소드

Get the language by file extension; if it exists get back the "main" language name, otherwise null
public GetLanguageByExtension ( string extension ) : string
extension string
리턴 string

GetLanguageByType() 공개 메소드

Get the language by name; if it exists get back the "main" language name, otherwise null
public GetLanguageByType ( string mimeType ) : string
mimeType string
리턴 string

GetLanguageNameFromType() 공개 메소드

Given a mime-type, return the language name
public GetLanguageNameFromType ( string type ) : string
type string
리턴 string

RemoveMargin() 공개 정적인 메소드

Removes as much of a margin as possible from "text".
public static RemoveMargin ( string text ) : string
text string
리턴 string

Run() 공개 메소드

Runs the registered script tags against the DynamicEngine.
public Run ( Microsoft.Scripting.Silverlight.DynamicEngine engine ) : void
engine Microsoft.Scripting.Silverlight.DynamicEngine
리턴 void