What is the function for returning part of a character, binary, text, or image expression in C# in Windows mobile? Because Substring()
f开发者_运维知识库unction does not work in Windows Mobile.
Substring is apparently supported by most mobile frameworks. From MSDN:
Supported By
Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.
If you want a character from a string you can try:
string str="abc";
char firstChar=str[0];
精彩评论