Created
December 29, 2014 21:02
-
-
Save LinuxDoku/9189cb01315e15f26c2a to your computer and use it in GitHub Desktop.
Best guy when working with .NET remoting
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace Residata.Platform.Server.Helper { | |
public static class AppDomainHelper { | |
public static T CreateInstanceAndUnwrap<T>(this AppDomain appDomain) { | |
return (T)appDomain.CreateInstanceAndUnwrap(typeof (T).Assembly.FullName, typeof (T).FullName); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
instead of