RazorEngine


CompilerReference

Defined in RazorEngine.dll.

Represents a reference for the compiler

Instance members

Instance memberDescription
Equals(obj)
Signature: obj:obj -> bool
Modifiers: abstract

Checks if the given object is equal to the current object.

Returns:

GetFile(exceptionCreator)
Signature: exceptionCreator:Func<string,exn> -> string

Try to resolve the reference to a file (throws when this is not possible).

Returns:

GetHashCode()
Signature: unit -> int
Modifiers: abstract

Gets a hashcode for the current object.

Returns:

ReferenceType()
Signature: unit -> unit

The type of the current reference.

Visit(visitor)
Signature: visitor:ICompilerReferenceVisitor<'T> -> 'T
Modifiers: abstract
Type parameters: 'T

execute the given visitor.

Returns:

Static members

Static memberDescription
From(file)
Signature: file:string -> CompilerReference

Create a compiler reference from the given file.

Returns:

From(assembly)
Signature: assembly:Assembly -> CompilerReference

Create a compiler reference from the given assembly. NOTE: The CodeDom compiler doesn't support assembly references where assembly.Location is null (roslyn only)!

Returns:

From(stream)
Signature: stream:Stream -> CompilerReference

Create a compiler reference from the given stream. NOTE: The CodeDom compiler doesn't support stream references (roslyn only)!

Returns:

From(byteArray)
Signature: (byteArray:byte []) -> CompilerReference

Create a compiler reference from the given byte array. NOTE: The CodeDom compiler doesn't support byte array references (roslyn only)!

Returns:

Fork me on GitHub