Method GetFileDialogFilter
GetFileDialogFilter(string, string)
Builds string for the Filter property of OpenFileDialog and SaveFileDialog. Sample: "PNG Files (.png)|.png".
public static string GetFileDialogFilter(string text, string ext)
Parameters
text
stringText part of the filter.
ext
stringFile extension used in the filter. Can be specified with or without '.' character at the beginning.