using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;

namespace GetOwnAssembly
{
    class Examples2_3
    {
        public static void GetNestedType()
        {
            Assembly someAssembly = null;

            // Listing 13-2
            Type nt = someAssembly.GetType("MyLib.ContainingType+Inside");
        }

        public static void DynamicConstruction()
        {
            Assembly asm = null;

            // Listing 13-3
            object o = asm.CreateInstance(
                "MyApp.WithConstructor",
                false,
                BindingFlags.Public | BindingFlags.Instance,
                null,
                new object[] { "Argumenty konstruktora" },
                null, null);
        }
    }
}
