| c# Programming Glossary: assembly.getexecutingassemblyWriting C# Plugin System http://stackoverflow.com/questions/1070787/writing-c-sharp-plugin-system  foreach var plugin in pluginFiles  Type objType null try  Assembly.GetExecutingAssembly .GetName .Name MessageBox.Show Directory.GetCurrentDirectory.. 
 What is the best scripting language to embed in a C# desktop application? [closed] http://stackoverflow.com/questions/137933/what-is-the-best-scripting-language-to-embed-in-a-c-sharp-desktop-application  classes to  the script options.ReferencedAssemblies.Add Assembly.GetExecutingAssembly .Location  Compile our code CompilerResults result result csProvider.CompileAssemblyFromSource.. 
 Inno Setup for Windows service? http://stackoverflow.com/questions/1449994/inno-setup-for-windows-service  install  ManagedInstallerClass.InstallHelper new string Assembly.GetExecutingAssembly .Location  break case uninstall  ManagedInstallerClass.InstallHelper..  ManagedInstallerClass.InstallHelper new string u Assembly.GetExecutingAssembly .Location  break  else  ServiceBase.Run new WindowsService .. 
 Displaying the build date http://stackoverflow.com/questions/1600962/displaying-the-build-date  text string for use like this. For the build number I used Assembly.GetExecutingAssembly .GetName .Version.ToString after defining how those came up... 
 What is a good pattern for using a Global Mutex in C#? http://stackoverflow.com/questions/229565/what-is-a-good-pattern-for-using-a-global-mutex-in-c  as defined in AssemblyInfo.cs string appGuid GuidAttribute Assembly.GetExecutingAssembly .GetCustomAttributes typeof GuidAttribute false .GetValue 0.. 
 Access to Modified Closure http://stackoverflow.com/questions/235455/access-to-modified-closure   Resharper disable AccessToModifiedClosure if Array.Exists Assembly.GetExecutingAssembly .GetManifestResourceNames delegate string name return name.Equals.. delegate string name return name.Equals files i  return Assembly.GetExecutingAssembly .GetManifestResourceStream files i ReSharper restore AccessToModifiedClosure.. 
 WPF User Control Parent http://stackoverflow.com/questions/302839/wpf-user-control-parent  instance Activator.CreateInstance Assembly.GetExecutingAssembly .FullName controlName UserControl control instance.Unwrap as.. 
 Calling generic method with a type argument known only at execution time http://stackoverflow.com/questions/325156/calling-generic-method-with-a-type-argument-known-only-at-execution-time  where T class public void AnotherMethod Assembly assembly Assembly.GetExecutingAssembly var interfaces from i in assembly.GetTypes where i.Namespace.. where T class public void AnotherMethod Assembly assembly Assembly.GetExecutingAssembly var interfaces from i in assembly.GetTypes where i.Namespace.. 
 How to read embedded resource text file http://stackoverflow.com/questions/3314140/how-to-read-embedded-resource-text-file  the Assembly.GetManifestResourceStream Method var assembly Assembly.GetExecutingAssembly var resourceName MyCompany.MyProduct.MyFile.txt using Stream.. 
 How do I get the path of the assembly the code is in? http://stackoverflow.com/questions/52797/how-do-i-get-the-path-of-the-assembly-the-code-is-in  Local Settings Temp .... DaoTests.dll System.Reflection.Assembly.GetExecutingAssembly .Location gives the same as the previous.  c# .net reflection.. public string AssemblyDirectory get  string codeBase Assembly.GetExecutingAssembly .CodeBase UriBuilder uri new UriBuilder codeBase string path.. 
 Get all inherited classes of an abstract class [duplicate] http://stackoverflow.com/questions/5411694/get-all-inherited-classes-of-an-abstract-class  alternative solutions tell em. Thanks Solution Type types Assembly.GetExecutingAssembly .GetTypes foreach Type type in types if type.IsSubclassOf typeof.. 
 Automatically update version number http://stackoverflow.com/questions/650/automatically-update-version-number  Retrieving the Version number is then quite easy Version v Assembly.GetExecutingAssembly .GetName .Version string About string.Format CultureInfo.InvariantCulture.. 
 Embedding unmanaged dll into a managed C# dll http://stackoverflow.com/questions/666799/embedding-unmanaged-dll-into-a-managed-c-sharp-dll  string dirName Path.Combine Path.GetTempPath MyAssembly. Assembly.GetExecutingAssembly .GetName .Version.ToString if Directory.Exists dirName Directory.CreateDirectory.. Properties. plus the name of the file. using Stream stm Assembly.GetExecutingAssembly .GetManifestResourceStream MyAssembly.Properties.MyAssembly.Unmanaged.dll.. 
 Getting all types in a namespace via reflection http://stackoverflow.com/questions/79693/getting-all-types-in-a-namespace-via-reflection  of assemblies first. string @namespace ... var q from t in Assembly.GetExecutingAssembly .GetTypes where t.IsClass t.Namespace @namespace select t q.ToList.. 
 How to get all classes within namespace? http://stackoverflow.com/questions/949246/how-to-get-all-classes-within-namespace  Example of usage Type typelist GetTypesInNamespace Assembly.GetExecutingAssembly MyNamespace for int i 0 i typelist.Length i Console.WriteLine.. 
 Embedding one dll inside another as an embedded resource and then calling it from my code http://stackoverflow.com/questions/96732/embedding-one-dll-inside-another-as-an-embedded-resource-and-then-calling-it-fro  party DLL in the location specified by System.Reflection.Assembly.GetExecutingAssembly .Location.ToString minus the last nameOfMyAssembly.dll. I can.. sender args var resName args.Name .dll var thisAssembly Assembly.GetExecutingAssembly using var input thisAssembly.GetManifestResourceStream resName.. 
 |