Method FileNameFromGeneration
FileNameFromGeneration(String, String, Int64)
Computes the full file name from base, extension and generation. If the
generation is -1, the file name is null
. If it's 0, the file name is
<base>.<ext>. If it's > 0, the file name is
<base>_<gen>.<ext>.
NOTE: .<ext> is added to the name only if ext
is
not an empty string.
Declaration
public static string FileNameFromGeneration(string base, string ext, long gen)
Parameters
Type | Name | Description |
---|---|---|
System.String | base | main part of the file name |
System.String | ext | extension of the filename |
System.Int64 | gen | generation |
Returns
Type | Description |
---|---|
System.String |