|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
简单的说:.net只有微软一家在做的,微软也不允许别人跟他做相同的工具,所以他就把需要的工具全部封装在.net的平台上了;而java是公开了。Queue:
Enqueue()
Dequeue()
Peek()//onlygetfirstelement,notdeleteit
Stack:
Count()
Clear()
Peek()
Pop()
Push()
CopyTo(array,offset)//copytoarray
Dictionary/Hashtable:
Keys//colleationofKeys,
Values//colleationofvalue
Count()
Clear()
Contains()//iselementinhashtable
ContainsKey()//isKeyinHashtable
Item()//Indexerforhashtable
Add()//AddentrywithKey/Value
GetEnumerator()//creatandreturnaEnumatorobject
Strings:
string
Compare()Split()
Concat()StartsWith()
Equals()ToLower()/ToUpper()
Insert()Trim()
Format()
string.Compare(s1,s2);//casesensitive
string.Compare(s1,s2,true)//casenotsensitive
strings3=@"test.net"
strings6string.Copy(s5);
strings7=s6
S7==S6
S7.Equals(s6)
string.Equals(s7,s6)
s7.Length
s3.EndWith("Test")
intoffset=s3.indexOf("TEST")//firstoccurence
strings10=s3.Insert(offset,"DDD");
strings11=s3.Insert(s3.IndexOf("ddd"),"EEE");
s12.Split(delimiters)
Regexr=newRegex("|,");
foreach(stringsinr.Split(s12)){}
StringBuilder
StringBuildersb=newStringBuild();
Append()
ToString()
RegularExpresstions:
usingSystem.Text.RegularExpressio
[img=1border=0style=,1src=]http://www.ckuyun.com/[/img]
来吧!老师们!我代表千千万万的asp.net/C#的初学者在这里呼唤着! |
|