C# 클래스 JsonFx.Compilation.ResourceBuildProvider

상속: System.Web.Compilation.BuildProvider, IResourceBuildHelper
파일 보기 프로젝트 열기: pocket-playlab/jsonfx-v1 1 사용 예제들

Private Properties

프로퍼티 타입 설명
AddDependency void
EnsureAssemblyDependencies void
EnsureDependencies void
FormatBytes string
IResourceBuildHelper System.Web.Compilation.CompilerType
IResourceBuildHelper TextReader
IResourceBuildHelper void
IResourceBuildHelper void
QuoteSnippetStringCStyle string

공개 메소드들

메소드 설명
Compress ( string source, byte &gzipped, byte &deflated ) : void
ComputeHash ( string value ) : string

Generates a unique hash from string

GenerateCode ( AssemblyBuilder assemblyBuilder ) : void
GenerateTypeNameFromPath ( string virtualPath ) : string

Generates a Type name for the compiled resource

GetGeneratedType ( CompilerResults results ) : Type

보호된 메소드들

메소드 설명
AddAssemblyDependency ( Assembly assembly ) : void
AddAssemblyDependency ( string assemblyName ) : void
ComputeHash ( Stream value ) : string

Generates a unique hash from byte[]

ComputeHash ( byte value ) : string

Generates a unique hash from byte[]

비공개 메소드들

메소드 설명
AddDependency ( string virtualPath ) : void
EnsureAssemblyDependencies ( ) : void
EnsureDependencies ( ) : void
FormatBytes ( byte value ) : string

Gets the hex digits for the given bytes

IResourceBuildHelper ( string language ) : System.Web.Compilation.CompilerType
IResourceBuildHelper ( string virtualPath ) : TextReader
IResourceBuildHelper ( Assembly assembly ) : void
IResourceBuildHelper ( string virtualPath ) : void
QuoteSnippetStringCStyle ( string value ) : string

Escapes a C# string using C-style escape sequences.

Adapted from Microsoft.CSharp.CSharpCodeGenerator.QuoteSnippetStringCStyle Primary difference is does not wrap at 80 chars as can cause C# compiler to fail.

메소드 상세

AddAssemblyDependency() 보호된 메소드

protected AddAssemblyDependency ( Assembly assembly ) : void
assembly System.Reflection.Assembly
리턴 void

AddAssemblyDependency() 보호된 메소드

protected AddAssemblyDependency ( string assemblyName ) : void
assemblyName string
리턴 void

Compress() 공개 정적인 메소드

public static Compress ( string source, byte &gzipped, byte &deflated ) : void
source string
gzipped byte
deflated byte
리턴 void

ComputeHash() 보호된 정적인 메소드

Generates a unique hash from byte[]
protected static ComputeHash ( Stream value ) : string
value Stream
리턴 string

ComputeHash() 보호된 정적인 메소드

Generates a unique hash from byte[]
protected static ComputeHash ( byte value ) : string
value byte
리턴 string

ComputeHash() 공개 정적인 메소드

Generates a unique hash from string
public static ComputeHash ( string value ) : string
value string
리턴 string

GenerateCode() 공개 메소드

public GenerateCode ( AssemblyBuilder assemblyBuilder ) : void
assemblyBuilder System.Web.Compilation.AssemblyBuilder
리턴 void

GenerateTypeNameFromPath() 공개 정적인 메소드

Generates a Type name for the compiled resource
public static GenerateTypeNameFromPath ( string virtualPath ) : string
virtualPath string
리턴 string

GetGeneratedType() 공개 메소드

public GetGeneratedType ( CompilerResults results ) : Type
results System.CodeDom.Compiler.CompilerResults
리턴 System.Type