C#类的静态成员
usingSystem;namespaceStaticVarApplication{classStaticVar{publicstaticintnum;publicvoidcount(){num++;}publicintgetNum(){r
usingSystem;namespaceStaticVarApplication{classStaticVar{publicstaticintnum;publicvoidcount(){num++;}publicintgetNum(){r
usingSystem;namespaceOperatorsAppl{classProgram{staticvoidMain(string[]args){boola=true;boolb=true;if(a&&b){Cons
usingSystem;usingSystem.Threading;namespaceMultithreadingApplication{classMainThreadProgram{staticvoidMain(string[]args)
usingSystem;usingSystem.Collections;namespaceCollectionsApplication{classProgram{staticvoidMain(string[]args){Queueq=new
usingSystem;namespaceCalculatorApplication{classNumberManipulator{publicintFindMax(intnum1,intnum2){/*localvariabledecla
usingSystem;publicclassDemo{publicstaticvoidMain(){stringmyStr;inti,len,lower_case,upper_case;myStr="Hello";Co
usingSystem;namespaceCalculatorApplication{classNumberManipulator{publicintFindMax(intnum1,intnum2){/*localvariabledecla
usingSystem;namespaceRectangleApplication{classRectangle{//membervariablesdoublelength;doublewidth;publicvoidAcceptdetai
usingSystem;namespacePolymorphismApplication{classShape{protectedintwidth,height;publicShape(inta=0,intb=0){width=a;heig
usingSystem;publicabstractclassVehicle{publicabstractvoiddisplay();}publicclassBus:Vehicle{publicoverridevoiddisplay(){C
usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;namespaceDemo{classMyApplication{staticvoi
usingSystem;namespaceMyApplication{classFactorial{publicintdisplay(intn){intres=1;while(n!=1){res=res*n;n=n-1;}returnres
usingSystem;namespaceIndexerApplication{classIndexedNames{privatestring[]namelist=newstring[size];staticpublicintsize=10
usingSystem;usingSystem.Threading;namespaceMultithreadingApplication{classThreadCreationProgram{publicstaticvoidCallToCh
usingSystem;namespaceOperatorsAppl{classProgram{staticvoidMain(string[]args){/*exampleofsizeofoperator*/Console.WriteLin
usingSystem;namespaceLineApplication{classLine{privatedoublelength;//LengthofalinepublicLine(){Console.WriteLine("O
usingSystem;namespaceStringApplication{classStringProg{staticvoidMain(string[]args){stringstr="Thisistest";if(
usingSystem;classDemo{staticvoidMain(){stringstr="xyz";for(inti=1;i<str.Length;i++){for(intstart=0;start<
usingSystem;publicclassDemo{publicstaticvoidMain(){inta=0,myWord=1;stringstr="HelloWorld!";while(a<=str.Len
usingSystem;usingSystem.Collections;namespaceCollectionsApplication{classProgram{staticvoidMain(string[]args){Hashtableh