RazorEngine


CompilerServicesUtility

Defined in RazorEngine.dll.
Provides service methods for compilation.

Static members

Static memberDescription
CSharpCreateGenericType(...)
Signature: (templateType:Type * modelTypeName:string * throwWhenNotGeneric:bool) -> string
CSharpGetRawTypeName(type)
Signature: type:Type -> string
GenerateClassName()
Signature: unit -> string
Generates a random class name.
GetConstructors(type)
Signature: type:Type -> IEnumerable<ConstructorInfo>
Gets the public or protected constructors of the specified type.
GetIteratorInterface(type)
Signature: type:Type -> Type
Gets the Iterator type for the given compiler generated iterator.
GetLoadedAssemblies()
Signature: unit -> IEnumerable<Assembly>
Gets an enumerable of all assemblies loaded in the current domain.
IsAnonymousType(type)
Signature: type:Type -> bool
Determines if the specified type is an anonymous type.
IsAnonymousTypeRecursive(t)
Signature: t:Type -> bool
Checks if the given type is a anonymous type or a generic type containing a reference type as generic type argument
IsDynamicType(type)
Signature: type:Type -> bool
Determines if the specified type is a dynamic type.
IsIteratorType(type)
Signature: type:Type -> bool
Determines if the specified type is a compiler generated iterator type.
ResolveCSharpTypeName(type)
Signature: type:Type -> string
Resolves the C# name of the given type.
ResolveVBTypeName(type)
Signature: type:Type -> string
Resolves the VB.net name of the given type.
VBCreateGenericType(...)
Signature: (templateType:Type * modelTypeName:string * throwWhenNotGeneric:bool) -> string
VBGetRawTypeName(type)
Signature: type:Type -> string
Fork me on GitHub