SevenZip/SevenZipCompressor.cs
/// <summary>
///   Produces  a new instance of ArchiveUpdateCallback class.
/// </summary>
/// <param name = "files">Array of FileInfo - files to pack</param>
/// <param name = "rootLength">Length of the common root of file names</param>
/// <param name = "password">The archive password</param>
/// <returns></returns>
Produces  a new instance of ArchiveUpdateCallback class.
Produces a new instance of ArchiveUpdateCallback class .
private ArchiveUpdateCallback GetArchiveUpdateCallback(
            FileInfo[] files, int rootLength, string password)
        {
            SetCompressionProperties();
            ArchiveUpdateCallback auc = (String.IsNullOrEmpty(password))
                                            ? new ArchiveUpdateCallback(files, rootLength, this, GetUpdateData(),
                                                                        DirectoryStructure)
                                                  {DictionarySize = GetDictionarySize()}
                                            : new ArchiveUpdateCallback(files, rootLength, password, this,
                                                                        GetUpdateData(), DirectoryStructure)
                                                  {DictionarySize = GetDictionarySize()};
            CommonUpdateCallbackInit(auc);
            return auc;
        }
private ArchiveUpdateCallback GetArchiveUpdateCallback ( FileInfo [ ] files , int rootLength , string password ) { SetCompressionProperties ( ) ; ArchiveUpdateCallback auc = ( String . IsNullOrEmpty ( password ) ) ? new ArchiveUpdateCallback ( files , rootLength , this , GetUpdateData ( ) , DirectoryStructure ) { DictionarySize = GetDictionarySize ( ) } : new ArchiveUpdateCallback ( files , rootLength , password , this , GetUpdateData ( ) , DirectoryStructure ) { DictionarySize = GetDictionarySize ( ) } ; CommonUpdateCallbackInit ( auc ) ; return auc ; }
Produces  a new instance of ArchiveUpdateCallback class.
Produces a new instance of ArchiveUpdateCallback class .
None
files
FileInfo[]
Array of FileInfo - files to pack
Array of FileInfo - files to pack
rootLength
int
Length of the common root of file names
Length of the common root of file names
password
string
The archive password
The archive password