diff options
author | Marius Ungureanu <maungu@microsoft.com> | 2019-12-22 03:43:41 +0300 |
---|---|---|
committer | Marius Ungureanu <maungu@microsoft.com> | 2019-12-22 03:43:41 +0300 |
commit | f1914c37e37dab215fe25cfdde190cdb9f369f77 (patch) | |
tree | a770f8fbd93894b5b2e4bbffbbf41a93fd2a9163 /Mono.Addins/Mono.Addins.Database | |
parent | 78293401391922f6d06c4707a043e030b54e3732 (diff) |
Mechanical change from ArrayList to List
Diffstat (limited to 'Mono.Addins/Mono.Addins.Database')
6 files changed, 10 insertions, 10 deletions
diff --git a/Mono.Addins/Mono.Addins.Database/AddinDatabase.cs b/Mono.Addins/Mono.Addins.Database/AddinDatabase.cs index 9b81807..b1cb643 100644 --- a/Mono.Addins/Mono.Addins.Database/AddinDatabase.cs +++ b/Mono.Addins/Mono.Addins.Database/AddinDatabase.cs @@ -640,8 +640,8 @@ namespace Mono.Addins.Database monitor.Log ("Generating add-in extension maps"); Hashtable changedAddins = null; - ArrayList descriptionsToSave = new ArrayList (); - ArrayList files = new ArrayList (); + var descriptionsToSave = new List<AddinDescription> (); + var files = new List<string> (); bool partialGeneration = addinsToUpdate != null; string[] domains = GetDomains ().Where (d => d == domain || d == GlobalDomain).ToArray (); @@ -763,7 +763,7 @@ namespace Mono.Addins.Database foreach (Extension ext in module.Extensions) { Extension mainExt; if (extensions.TryGetValue (ext.Path, out mainExt)) { - ArrayList list = new ArrayList (); + var list = new List<ExtensionNodeDescription> (); EnsureInsertionsSorted (ext.ExtensionNodes); list.AddRange (ext.ExtensionNodes); int pos = -1; diff --git a/Mono.Addins/Mono.Addins.Database/AddinScanFolderInfo.cs b/Mono.Addins/Mono.Addins.Database/AddinScanFolderInfo.cs index 42b836a..944922d 100644 --- a/Mono.Addins/Mono.Addins.Database/AddinScanFolderInfo.cs +++ b/Mono.Addins/Mono.Addins.Database/AddinScanFolderInfo.cs @@ -204,7 +204,7 @@ namespace Mono.Addins.Database files.Clear (); return missing; } - ArrayList toDelete = new ArrayList (); + var toDelete = new List<string> (); foreach (AddinFileInfo info in files.Values) { if (!fs.FileExists (info.File)) { if (info.IsAddin) diff --git a/Mono.Addins/Mono.Addins.Database/AddinScanResult.cs b/Mono.Addins/Mono.Addins.Database/AddinScanResult.cs index d90437d..85b02e2 100644 --- a/Mono.Addins/Mono.Addins.Database/AddinScanResult.cs +++ b/Mono.Addins/Mono.Addins.Database/AddinScanResult.cs @@ -38,11 +38,11 @@ namespace Mono.Addins.Database { internal class AddinScanResult: MarshalByRefObject { - internal ArrayList AddinsToScan = new ArrayList (); + internal List<string> AddinsToScan = new List<string> (); internal List<string> AddinsToUpdateRelations = new List<string> (); internal List<string> AddinsToUpdate = new List<string> (); - internal ArrayList FilesToScan = new ArrayList (); - internal ArrayList ModifiedFolderInfos = new ArrayList (); + internal List<FileToScan> FilesToScan = new List<FileToScan> (); + internal List<AddinScanFolderInfo> ModifiedFolderInfos = new List<AddinScanFolderInfo> (); internal AddinHostIndex HostIndex; internal List<string> RemovedAddins = new List<string> (); diff --git a/Mono.Addins/Mono.Addins.Database/AddinScanner.cs b/Mono.Addins/Mono.Addins.Database/AddinScanner.cs index 1455750..6defcbb 100644 --- a/Mono.Addins/Mono.Addins.Database/AddinScanner.cs +++ b/Mono.Addins/Mono.Addins.Database/AddinScanner.cs @@ -483,7 +483,7 @@ namespace Mono.Addins.Database Hashtable internalNodeSets = new Hashtable (); - ArrayList setsCopy = new ArrayList (); + var setsCopy = new List<ExtensionNodeSet> (); setsCopy.AddRange (config.ExtensionNodeSets); foreach (ExtensionNodeSet eset in setsCopy) ScanNodeSet (reflector, config, eset, assemblies, internalNodeSets); diff --git a/Mono.Addins/Mono.Addins.Database/AddinUpdateData.cs b/Mono.Addins/Mono.Addins.Database/AddinUpdateData.cs index cbae4d4..93b8715 100644 --- a/Mono.Addins/Mono.Addins.Database/AddinUpdateData.cs +++ b/Mono.Addins/Mono.Addins.Database/AddinUpdateData.cs @@ -277,7 +277,7 @@ namespace Mono.Addins.Database if (module == description.MainModule) deps = module.Dependencies; else { - ArrayList list = new ArrayList (); + var list = new List<Dependency> (); list.AddRange (module.Dependencies); list.AddRange (description.MainModule.Dependencies); deps = list; diff --git a/Mono.Addins/Mono.Addins.Database/DefaultAssemblyReflector.cs b/Mono.Addins/Mono.Addins.Database/DefaultAssemblyReflector.cs index e668d2c..62eb3d2 100644 --- a/Mono.Addins/Mono.Addins.Database/DefaultAssemblyReflector.cs +++ b/Mono.Addins/Mono.Addins.Database/DefaultAssemblyReflector.cs @@ -143,7 +143,7 @@ namespace Mono.Addins.Database public IEnumerable GetBaseTypeFullNameList (object type) { - ArrayList list = new ArrayList (); + var list = new List<string> (); Type btype = ((Type)type).BaseType; while (btype != typeof(object)) { list.Add (btype.FullName); |