Example #1
0
 public static void AddNamespace(params string[] namespaces)
 {
     foreach (string item in namespaces)
     {
         if (!ReferencedNamespaces.Contains(item))
         {
             ReferencedNamespaces.Add(item);
         }
     }
 }
Example #2
0
        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);
            }
        }