C#使用命名空间
usingSystem;namespacefirst_space{classnamespace_cl{publicvoidfunc(){Console.WriteLine("Insidefirst_space");}}}
usingSystem;namespacefirst_space{classnamespace_cl{publicvoidfunc(){Console.WriteLine("Insidefirst_space");}}}
usingSystem;namespaceMyApplication{classFactorial{publicintdisplay(intn){if(n==1)return1;elsereturnn*display(n-1);}stati
usingSystem;usingSystem.Collections;namespaceCollectionsApplication{classProgram{staticvoidMain(string[]args){//creating
usingSystem;namespaceDecisionMaking{classProgram{staticvoidMain(string[]args){//*localvariabledefinition*/inta=100;intb=
usingSystem;namespaceLoops{classProgram{staticvoidMain(string[]args){/*forloopexecution*/for(inta=10;a<20;a=a+1){Cons
usingSystem;namespaceOperatorOvlApplication{classBox{privatedoublelength;//Lengthofaboxprivatedoublebreadth;//Breadthofa
usingSystem;delegatevoidNumberChanger(intn);namespaceDelegateAppl{classTestDelegate{staticintnum=10;publicstaticvoidAddN
usingSystem;usingSystem.Threading;namespaceSample{classDemo{staticvoidMain(string[]args){for(inti=0;i<10;i++){Console
usingSystem;namespaceBoxApplication{classBox{privatedoublelength;//Lengthofaboxprivatedoublebreadth;//Breadthofaboxpriva
usingSystem;namespaceMyApplication{classProgram{staticvoidMain(string[]args){inta=60;/*60=00111100*/intb=13;/*13=0000110
usingSystem;namespaceCalculatorApplication{classNumberManipulator{publicvoidgetValues(outintx,outinty){Console.WriteLine
usingSystem;namespaceTypeConversionApplication{classExplicitConversion{staticvoidMain(string[]args){doubled=5673.74;inti
usingSystem;namespaceArrayApplication{classMyArray{staticvoidMain(string[]args){int[]list={34,72,13,44,25,30,10};int[]te
usingSystem;namespaceRectangleApplication{classRectangle{//membervariablesprotecteddoublelength;protecteddoublewidth;pub
usingSystem;namespaceMyApplication{classFactorial{publicintdisplay(intn){intres=1;while(n!=1){res=res*n;n=n-1;}returnres
usingSystem;classProgram{staticvoidMain(){stringstr1="Tom";//concatenationstringstr2="Hanks"+str1;Co
usingSystem;namespaceLineApplication{classLine{privatedoublelength;//LengthofalinepublicLine(){Console.WriteLine("O
usingSystem;classDemo{staticvoidMain(){stringstr="xyz";for(inti=1;i<str.Length;i++){for(intstart=0;start<
#defineDEBUGusingSystem;usingSystem.Diagnostics;publicclassMyclass{[Conditional("DEBUG")]publicstaticvoidMessa
usingSystem;namespaceBubbleSort{classMySort{staticvoidMain(string[]args){int[]arr={78,55,45,98,13};inttemp;for(intj=0;j&