Beispiel #1
0
        private string GetUpdatedArchivePath(ArchiveTypeViewModel previous, ArchiveTypeViewModel current)
        {
            var currentExtensionLength      = previous?.Name?.Length ?? 0;
            var archivePathWithoutExtension = ArchivePath.Substring(0, ArchivePath.Length - currentExtensionLength);

            return($"{archivePathWithoutExtension}{current.Name}");
        }
 private string GetUpdatedArchivePath(ArchiveTypeViewModel previous, ArchiveTypeViewModel current)
 {
     var currentExtensionLength      = previous?.Name?.Length ?? 0;
     var archivePathWithoutExtension = ArchivePath[..^ currentExtensionLength];