Skip Navigation LinksHome > Blog > 2008 > January

January, 2008

How To: Load Assemblies in an Application Domain

Creating a new application domain and launching an assembly within that domain is as simple as creating an instance of the System.AppDomain class with a friendly name, and then calling the ExecuteAssembly method, as the following code demonstrates:' VBDim d As AppDomain = AppDomain.CreateDomain("NewDomain")d.ExecuteAssembly("Assembly.exe")Excerpt from MSDN: There are several ways

How To: match using backreferences

Backreferencing uses named groups to allow you to search for other instances of characters that match a wildcard. Backreferences provide a convenient way to find repeating groups of characters. They can be thought of as a shorthand instruction to match the same string again.As the name implies, a regex backreference refers to a substring previously encountered in the target text. Backreferences are