Assembly assembly = Assembly.Load("AssemblyName.ClassName"); Class class = (Class)assembly.CreateInstance("AssemblyName.ClassName", true);
world wide web development problems asp net php html xhtml css javascript jquery w3dproblems
Thursday, December 4, 2014
Get class from string in asp net c# using Reflection
asp net c# Get executing assembly name
// Full-name, e.g. MyApplication, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null string exeAssembly = Assembly.GetEntryAssembly().FullName; // or just the "assembly name" part (e.g. "MyApplication") string exeAssemblyName = Assembly.GetEntryAssembly().GetName().Name;
Saturday, November 22, 2014
Exporting CLR Assemblies from SQL Server back to .dll files
Solution 1
Create a sql server project and import the database. It will import all the assemblies in the assemblies folderHow to set the database owner (DBO) has EXTERNAL ACCESS ASSEMBLY permission as TRUE?
EXEC sp_changedbowner 'sa' ALTER DATABASE [dbase] SET trustworthy ON
asp net c# How do you convert Byte Array to Hexadecimal String, and vice versa?
public byte[] GetStringToBytes(string value) { var shb = System.Runtime.Remoting.Metadata.W3cXsd2001.SoapHexBinary.Parse(value); return shb.Value; } public string GetBytesToString(byte[] value) { var shb = new System.Runtime.Remoting.Metadata.W3cXsd2001.SoapHexBinary(value); return shb.ToString(); }
Subscribe to:
Posts (Atom)