C#检查给定字符串中是否存在某子字符串
usingSystem;publicclassDemo{publicstaticvoidMain(){stringstr1="United",str2="Uni";boolres;res=str1.C
usingSystem;publicclassDemo{publicstaticvoidMain(){stringstr1="United",str2="Uni";boolres;res=str1.C
usingSystem;namespaceOperatorOvlApplication{classBox{privatedoublelength;//Lengthofaboxprivatedoublebreadth;//Breadthofa
usingSystem;namespaceRectangleApplication{classRectangle{//membervariablesprotecteddoublelength;protecteddoublewidth;pub
usingSystem;namespaceDataTypeApplication{classProgram{staticvoidMain(string[]args){Console.WriteLine("Sizeofint:{0}
usingSystem;namespaceOperatorsAppl{classProgram{staticvoidMain(string[]args){/*exampleofsizeofoperator*/Console.WriteLin
usingSystem;namespaceArrayApplication{classMyArray{staticvoidMain(string[]args){int[]n=newint[10];/*nisanarrayof10intege
usingSystem;namespaceLoops{classProgram{staticvoidMain(string[]args){/*localvariabledefinition*/inti,j;for(i=2;i<100;
usingSystem;namespaceMyApplication{classMyClass{staticvoidMain(string[]args){//nisanarrayof5integersint[]a=newint[5];int
usingSystem;usingSystem.Collections;namespaceCollectionsApplication{classProgram{staticvoidMain(string[]args){SortedList
#defineDEBUGusingSystem;usingSystem.Diagnostics;publicclassDemo{[Conditional("DEBUG")]publicstaticvoidMessage(
usingSystem;namespaceTypeConversionApplication{classStringConversion{staticvoidMain(string[]args){inti=75;floatf=53.005f
usingSystem;usingSystem.Collections.Generic;usingSystem.Text;namespaceDemo{classtoBinary{staticvoidMain(string[]args){in
usingSystem;namespaceArrayApplication{classMyArray{doublegetAverage(int[]arr,intsize){inti;doubleavg;intsum=0;for(i=0;i&
usingSystem;usingfirst_space;usingsecond_space;namespacefirst_space{classabc{publicvoidfunc(){Console.WriteLine("In
usingSystem;namespacePolymorphismApplication{classShape{protectedintwidth,height;publicShape(inta=0,intb=0){width=a;heig
usingSystem;usingSystem.Text.RegularExpressions;namespaceRegExApplication{classProgram{privatestaticvoidshowMatch(string
usingSystem;namespaceDecisionMaking{classProgram{staticvoidMain(string[]args){//*localvariabledefinition*/inta=100;intb=
usingSystem;usingSystem.Threading;namespaceMultithreadingApplication{classThreadCreationProgram{publicstaticvoidCallToCh
#defineDEBUG#defineVC_V10usingSystem;publicclassTestClass{publicstaticvoidMain(){#if(DEBUG&&!VC_V10)Console.Writ
usingSystem;namespaceBubbleSort{classMySort{staticvoidMain(string[]args){int[]arr={78,55,45,98,13};inttemp;for(intj=0;j&