在 Windows 移动版中返回 C# 中的部分字符、二进制、文本或图像表达式的函数是什么?

本文关键字:文本 二进制 表达式 是什么 函数 图像 移动 Windows 返回 字符 | 更新日期: 2023-09-27 17:57:24

Windows Mobile 中返回 C# 中字符、二进制、文本或图像表达式的一部分的函数是什么?因为Substring()该功能在Windows Mobile中不起作用。

在 Windows 移动版中返回 C# 中的部分字符、二进制、文本或图像表达式的函数是什么?

子字符串显然被大多数移动框架所支持。 从 MSDN:

支持方

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

Microsoft .NET Framework 3.0 在 Windows Vista、Microsoft Windows XP SP2 和 Windows Server 2003 SP1 上受支持。

如果你想要一个字符串中的字符,你可以尝试:

string str="abc";
char firstChar=str[0];