Class ContentModelILCompiler
Inheritance
System.Object
ContentModelILCompiler
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.DataAbstraction.RuntimeModel.Internal
Assembly: EPiServer.Cms.AspNet.dll
Version: 11.20.7Syntax
public class ContentModelILCompiler
Constructors
ContentModelILCompiler(IBackingTypeResolver, Func<IEnumerable<ContentScannerExtension>>)
Declaration
public ContentModelILCompiler(IBackingTypeResolver backingTypeResolver, Func<IEnumerable<ContentScannerExtension>> contentScannerExtensionsAccessor)
Parameters
Type | Name | Description |
---|---|---|
IBackingTypeResolver | backingTypeResolver | |
System.Func<System.Collections.Generic.IEnumerable<ContentScannerExtension>> | contentScannerExtensionsAccessor |
Methods
GetOrGenerate(Type)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Generates a dynamic proxy of the given content type. The proxy becomes a subclass of the content type, that overrides any interceptable property.
Declaration
public Type GetOrGenerate(Type contentType)
Parameters
Type | Name | Description |
---|---|---|
System.Type | contentType | The content type to create a proxy from. |
Returns
Type | Description |
---|---|
System.Type |
SaveToDisk(String)
Declaration
public void SaveToDisk(string assemblyName = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | assemblyName |