Castle.ActiveRecord.Framework.Internal.ActiveRecordModel.GetNonProxy C# (CSharp) Méthode

GetNonProxy() private static méthode

Get the base type is the object is lazy
private static GetNonProxy ( Type type ) : Type
type System.Type
Résultat System.Type
		private static Type GetNonProxy(Type type)
		{
			if (type.GetField("__interceptor") != null ||//Dynamic Proxy 1.0
				type.GetField("__interceptors")!=null) //Dynamic Proxy 2.0
			{
				type = type.BaseType;
			}
			return type;
		}