简体   繁体   中英

Why Path.Combine not working in Windows Phone 8

I am creating Windows Phone 8 app. In that I've Util static class. Now while creating database, I've kept database name as const string & database path as static string , when I try to combine it, it gives me incorrect path, WHY? See below image for proof. What's wrong with my code.

在此处输入图片说明

You're calling Path.Combine() with one parameter, which will just return the input. Change + to , to pass it two parameters, which will cause it to combine the paths.

Also try to copy+paste relevant code, that reads a whole lot easier than a screenshot.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM