public static void AddNamespace(params string[] namespaces) { foreach (string item in namespaces) { if (!ReferencedNamespaces.Contains(item)) { ReferencedNamespaces.Add(item); } } }
private void RecordReferencedNamespaceAndAssembly(string nspace, string assembly) { if (!String.IsNullOrEmpty((nspace))) { if (!ReferencedNamespaces.Contains(nspace) && ReferencedNamespace.Name != nspace) { ReferencedNamespaces.Add(nspace); } } if (!ReferencedAssemblies.Contains(assembly) && grainAssembly.GetName().Name + "Client" != assembly) { ReferencedAssemblies.Add(assembly); } }