/// <summary> /// Resolves namespace into array of global assembly (GAC) locations. /// </summary> public static string[] FindGlobalAssembly(String namespaceStr) { ArrayList retval = new ArrayList(); AssemblyEnum asmEnum = new AssemblyEnum(namespaceStr); String asmName; while ((asmName = asmEnum.GetNextAssembly()) != null) { string asmLocation = AssemblyCache.QueryAssemblyInfo(asmName); retval.Add(asmLocation); } return((string[])retval.ToArray(typeof(string))); }
/// <summary> /// Resolves namespace into array of global assembly (GAC) locations. /// </summary> public static string[] FindGlobalAssembly(String namespaceStr) { ArrayList retval = new ArrayList(); AssemblyEnum asmEnum = new AssemblyEnum(namespaceStr); String asmName; while ((asmName = asmEnum.GetNextAssembly()) != null) { string asmLocation = AssemblyCache.QueryAssemblyInfo(asmName); retval.Add(asmLocation); } return (string[]) retval.ToArray(typeof (string)); }