Class RuntimeModelExtensions

Extension methods essential to working with types associated with the runtime model.

Inheritance
System.Object
RuntimeModelExtensions
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
Assembly: EPiServer.dll
Version: 11.20.7
Syntax
public static class RuntimeModelExtensions

Methods

GetOriginalType(Object)

Gets the System.Type of the current object, ensuring that the eventual type that could be generated by a proxy interceptor is ignored.

Declaration
public static Type GetOriginalType(this object subject)
Parameters
Type Name Description
System.Object subject

The instance that you want to get the type for.

Returns
Type Description
System.Type

The type of the current instance.