コード例 #1
0
 /// <summary>Returns the <see cref="T:System.Type" /> of the object that the current instance of <see cref="T:System.Runtime.Remoting.Proxies.RealProxy" /> represents.</summary>
 /// <returns>The <see cref="T:System.Type" /> of the object that the current instance of <see cref="T:System.Runtime.Remoting.Proxies.RealProxy" /> represents.</returns>
 /// <PermissionSet>
 ///   <IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="Infrastructure" />
 /// </PermissionSet>
 public Type GetProxiedType()
 {
     if (this._objTP != null)
     {
         return(RealProxy.InternalGetProxyType(this._objTP));
     }
     if (this.class_to_proxy.IsInterface)
     {
         return(typeof(MarshalByRefObject));
     }
     return(this.class_to_proxy);
 }