摘要:
1. string.indexof()IndexOf()与LastIndexOf()的不同在于IndexOf()从字符串中第一个字符开始检索,LastIndexOf()是从字符串的最后一个字符向前检索。返回值都是字符串中字符所在的下标,如果没有找到则返回-12.string.replace()返回一个新字符串,其中当前实例中出现的所有指定字符串都替换为另一个指定的字符串。定义:public string Replace( stringoldValue, string newValue)实例:using System;public class ReplaceTest { public stati 阅读全文