title: Execute method inside signed console app from an unsigned assembly by Reflection
body: <p>First of all, </p>
  
  <p>Sorry about my ignorance about .net and everything in general, I've been working for a long time with it but i'm still in process to learning, that's way i'm asking.</p>
  
  <p>I'm learning about reflection and i was practicing when i tried the following:</p>
  
  <p>i added an unsigned reference to an signed assembly and all ok ; the compiler said the reference hadn't a strong name (that's what i expected).</p>
  
  <p>But when i used the <code>MethodInfo.Invoke(null, null)</code> to invoke the static method it worked perfectly.</p>
  
  <p>I signed the project(just the console one) by the configuration tab page.</p>
  
  <p>i don't understand, can someone explain me better</p>
  
  <p>The question is:</p>
  
  <p>If the assembly is not signed why works in a signed assembly when invoke by reflection.</p>
  
  <p>Thanks,</p>
  
  <p>My code</p>
  
  <p>The code from the only class signed assembly(Console application) project:</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Text;
  using System.Reflection;
  
  namespace ConsoleApplication1
  {
      class Program
      {
          static void Main(string[] args)
          {
  
              Assembly a = Assembly.LoadFrom(
                  @"path\ClassLibrary1.dll");
  
            var m= a.GetType("ClassLibrary1.ZZ");
            MethodInfo met = m.GetMethod("TroskisTroskis");
            met.Invoke(null,null);
  
  
             Console.ReadKey(true);
          }
      }
  }
  </code></pre>
  
  <p>The code from the only class NON signed assembly project:</p>
  
  <pre><code>using System.Collections.Generic;
  using System.Linq;
  using System.Text;
  using System.Threading;
  
  namespace ClassLibrary1
  {
      public  static class ZZ
      {
          public  static void TroskisTroskis()
          {
              Thread.Sleep(1000);
          }
      }
  }
  </code></pre>
  
  <p>Thanks</p>