Skip to main content

CompilerServices

Provides service methods for compilation.

Assembly: ServiceStack.Razor.dll
View Source
Declaration
public static class CompilerServices

Properties

IncludeAssemblies

View Source
Declaration
public static List<Assembly> IncludeAssemblies { get; }

Methods

IsAnonymousType(Type)

Determines if the specified type is an anonymous type.

View Source
Declaration
public static bool IsAnonymousType(Type type)
Returns

System.Boolean: True if the type is an anonymous type, otherwise false.

Parameters
TypeNameDescription
System.TypetypeThe type to check.

|

IsDynamicType(Type)

Determines if the specified type is a dynamic type.

View Source
Declaration
public static bool IsDynamicType(Type type)
Returns

System.Boolean: True if the type is an anonymous type, otherwise false.

Parameters
TypeNameDescription
System.TypetypeThe type to check.

|

GetConstructors(Type)

Gets the public or protected constructors of the specified type.

View Source
Declaration
public static IEnumerable<ConstructorInfo> GetConstructors(Type type)
Returns

System.Collections.Generic.IEnumerable<System.Reflection.ConstructorInfo>: An enumerable of constructors.

Parameters
TypeNameDescription
System.TypetypeThe target type.

|

GetLoadedAssemblies()

Gets an enumerable of all assemblies loaded in the current domain.

View Source
Declaration
public static IEnumerable<Assembly> GetLoadedAssemblies()
Returns

System.Collections.Generic.IEnumerable<System.Reflection.Assembly>: An enumerable of loaded assemblies.