Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

Exemple d’utilisation de ‘ReflectionOnlyGetAssemblies’

Charger,une,Assemblée,avec,un,nom
{filelink=17575}

using System;
using System.Reflection;
using System.Timers;
 
public class Example
{
    public static void Main()
    {
        string nom = typeof(Timer).Assembly.FullName;
        Assembly.ReflectionOnlyLoad(nom);
        foreach (Assembly a in AppDomain.CurrentDomain.GetAssemblies())
        {
            Console.WriteLine("	{0}", a.GetName());
        }
        foreach (Assembly a in AppDomain.CurrentDomain.ReflectionOnlyGetAssemblies())
        {
            Console.WriteLine("	{0}", a.GetName());
        }
    }
}

No comments yet.

Leave a Comment