From c685b5e67956bc16d6b0ca41004a860cb8ee040c Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Wed, 24 Apr 2024 00:29:27 -0400 Subject: [PATCH] Add extension properties from UnshieldSharp --- .../Wrappers/InstallShieldCabinet.cs | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/SabreTools.Serialization/Wrappers/InstallShieldCabinet.cs b/SabreTools.Serialization/Wrappers/InstallShieldCabinet.cs index d5b2da59..13734eb6 100644 --- a/SabreTools.Serialization/Wrappers/InstallShieldCabinet.cs +++ b/SabreTools.Serialization/Wrappers/InstallShieldCabinet.cs @@ -15,6 +15,26 @@ namespace SabreTools.Serialization.Wrappers #region Extension Properties + /// + /// Number of components in the cabinet set + /// + public int ComponentCount => Model.Components!.Length; + + /// + /// Number of directories in the cabinet set + /// + public ushort DirectoryCount => Model.Descriptor!.DirectoryCount; + + /// + /// Number of files in the cabinet set + /// + public uint FileCount => Model.Descriptor!.FileCount; + + /// + /// Number of file groups in the cabinet set + /// + public int FileGroupCount => Model.FileGroups!.Length; + /// /// The major version of the cabinet ///