public static void AddReferences(params Type[] types) { foreach (var type in types) { if (!ReferencePaths.Contains(type.Assembly.Location)) { ReferencePaths.Add(type.Assembly.Location); } } }
public static void AddReferences(params Assembly[] assemblies) { foreach (var assembly in assemblies) { if (!ReferencePaths.Contains(assembly.Location)) { ReferencePaths.Add(assembly.Location); } } }
public static void AddReferences(params string[] assemblies) { foreach (var assembly in assemblies) { if (!ReferencePaths.Contains(assembly)) { ReferencePaths.Add(assembly); } } }
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); } } }