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
textstringText part of the filter.
extstringFile extension used in the filter. Can be specified with or without '.' character at the beginning.