SalesForceBackup/Backup.cs
/// <summary>
/// Formats the name of the file.
/// </summary>
/// <param name="extension">The extension to apply to the filename.</param>
/// <param name="i">The revision number to apply to the filename.</param>
/// <returns>The formatted filename.</returns>
/// <remarks>If the revision is less than or equal to 0, then no revision indicator will be applied.</remarks>
Formats the name of the file.
Formats the name of the file .
private string FormatFileName(string extension, int i)
        {
            var revision = i <= 0 ? String.Empty : String.Format("-{0}", i);
            var dateName = String.Format("{0}{1}{2}", GetDatetimeString(), revision, extension);
            return dateName;
        }
private string FormatFileName ( string extension , int i ) { var revision = i <= 0 ? String . Empty : String . Format ( " " , i ) ; var dateName = String . Format ( " " , GetDatetimeString ( ) , revision , extension ) ; return dateName ; }
Formats the name of the file.
Formats the name of the file .
The formatted filename.
The formatted filename .
extension
string
The extension to apply to the filename.
The extension to apply to the filename .
i
int
The revision number to apply to the filename.
The revision number to apply to the filename .
remarks
If the revision is less than or equal to 0, then no revision indicator will be applied.
If the revision is less than or equal to 0 then no revision indicator will be applied .