File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed
SabreTools.Serialization/Wrappers Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change 1+ using System . Collections . Generic ;
12using System . IO ;
23using SabreTools . Models . InstallShieldArchiveV3 ;
34
@@ -12,6 +13,41 @@ public partial class InstallShieldArchiveV3 : WrapperBase<Archive>
1213
1314 #endregion
1415
16+ #region Extension Properties
17+
18+ /// <inheritdoc cref="Archive.Directories"/>
19+ public Models . InstallShieldArchiveV3 . Directory [ ] Directories => Model . Directories ?? [ ] ;
20+
21+ /// <inheritdoc cref="Archive.Files"/>
22+ public Models . InstallShieldArchiveV3 . File [ ] Files => Model . Files ?? [ ] ;
23+
24+ /// <summary>
25+ /// Map of all directories found in the archive
26+ /// </summary>
27+ public Dictionary < string , Models . InstallShieldArchiveV3 . File > FileMap
28+ {
29+ get
30+ {
31+ // Build the file map if not already
32+ if ( _fileMap == null )
33+ {
34+ _fileMap = [ ] ;
35+ foreach ( var file in Model . Files ?? [ ] )
36+ {
37+ if ( file ? . Name == null )
38+ continue ;
39+
40+ _fileMap [ file . Name ] = file ;
41+ }
42+ }
43+
44+ return _fileMap ;
45+ }
46+ }
47+ private Dictionary < string , Models . InstallShieldArchiveV3 . File > ? _fileMap = null ;
48+
49+ #endregion
50+
1551 #region Constructors
1652
1753 /// <inheritdoc/>
You can’t perform that action at this time.
0 commit comments