/// <summary>Checks whether the object specified by its type name and assembly name is registered as a well-known client type.</summary>
/// <returns>The <see cref="T:System.Runtime.Remoting.WellKnownClientTypeEntry" /> that corresponds to the specified object type.</returns>
/// <param name="typeName">The type name of the object to check. </param>
/// <param name="assemblyName">The assembly name of the object to check. </param>
/// <exception cref="T:System.Security.SecurityException">At least one of the callers higher in the callstack does not have permission to configure remoting types and channels. </exception>
/// <PermissionSet>
/// <IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="RemotingConfiguration" />
/// </PermissionSet>
public static WellKnownClientTypeEntry IsWellKnownClientType(string typeName, string assemblyName)
{
return(RemotingConfiguration.IsWellKnownClientType(Assembly.Load(assemblyName).GetType(typeName)));
}