I'm trying to delete image after deleting record from list in wpf C#. but it always throw exception that file is used by anohter process and not allow me to delete.
string appPath = Path.GetDirectoryName(System.AppDomain.CurrentDomain.BaseDirectory) + @"\screenshots\";
string schemename = selectedStockObject.Name.ToString();
objSchemeBLL = new SchemeBLL();
Scheme objTemp = objSchemeBLL.getSchemebyName(schemename);