WIndows Mobile 6 SDK - string.Split and StringSplitOptions - can't find

大兔子大兔子 提交于 2019-12-12 05:41:42

问题


I try to do the

using System;

"some/String".Split(new char[] { ' ' }, StringSplitOptions.RemoveEmptyEntries)

but the compiler can't find the StringSplitOptions enum. How to fix it ?


回答1:


Windows Mobile uses .NET Compact Framework, which does not support StringSplitOptions.

The only String.Split overload implemented in the Compact Framework is Split(Char[]).



来源:https://stackoverflow.com/questions/31835127/windows-mobile-6-sdk-string-split-and-stringsplitoptions-cant-find

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!