Exemple #1
0
 public static void AddReferences(params Type[] types)
 {
     foreach (var type in types)
     {
         if (!ReferencePaths.Contains(type.Assembly.Location))
         {
             ReferencePaths.Add(type.Assembly.Location);
         }
     }
 }
Exemple #2
0
 public static void AddReferences(params Assembly[] assemblies)
 {
     foreach (var assembly in assemblies)
     {
         if (!ReferencePaths.Contains(assembly.Location))
         {
             ReferencePaths.Add(assembly.Location);
         }
     }
 }
Exemple #3
0
 public static void AddReferences(params string[] assemblies)
 {
     foreach (var assembly in assemblies)
     {
         if (!ReferencePaths.Contains(assembly))
         {
             ReferencePaths.Add(assembly);
         }
     }
 }
Exemple #4
0
        public static void AddReferences(params Type[] types)
        {
            if (_initialized)
            {
                throw new InvalidOperationException("Compilador só pode ser executado no Pre-Start!");
            }

            foreach (var type in types)
            {
                if (!ReferencePaths.Contains(type.Assembly.Location))
                {
                    ReferencePaths.Add(type.Assembly.Location);
                }
            }
        }