C#I/O二进制文件
usingSystem;usingSystem.IO;namespaceBinaryFileApplication{classProgram{staticvoidMain(string[]args){BinaryWriterbw;Binar
usingSystem;usingSystem.IO;namespaceBinaryFileApplication{classProgram{staticvoidMain(string[]args){BinaryWriterbw;Binar
usingSystem;namespaceInheritanceApplication{classShape{publicvoidsetWidth(intw){width=w;}publicvoidsetHeight(inth){heigh
usingSystem;namespaceDemo{classmyApplication{staticvoidMain(string[]args){stringstr="Amit$#%";char[]one=str.To
usingSystem;namespaceCalculatorApplication{classNumberManipulator{publicvoidswap(intx,inty){inttemp;temp=x;/*savethevalu
usingSystem;namespaceLineApplication{classLine{privatedoublelength;//LengthofalinepublicLine(){Console.WriteLine("O
usingSystem;publicclassDemo{publicstaticvoidMain(){stringmyStr;inti,len,vowel_count,cons_count;myStr="Avengers"
usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;namespaceDemo{classSon:Father{publicvoidDi
usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;namespaceDemo{classMyApplication{staticvoi
usingSystem;namespaceArrayApplication{classMyArray{doublegetAverage(int[]arr,intsize){inti;doubleavg;intsum=0;for(i=0;i&
usingSystem;namespaceSample{classDemo{staticvoidMain(string[]args){intnum1=50;intnum2=25;intresult;result=num1+num2;Cons
usingSystem;usingSystem.Collections;namespaceCollectionApplication{classProgram{staticvoidMain(string[]args){ArrayListal
usingSystem;namespaceLineApplication{classLine{privatedoublelength;//LengthofalinepublicLine(doublelen){//Parameterizedc
usingSystem;classDemo{staticvoidMain(){stringinput="https://example.com/new.html";//Seeifinputmatchesoneofthes
usingSystem;namespaceCalculatorApplication{classNumberManipulator{publicintFindMax(intnum1,intnum2){/*localvariabledecla
usingSystem;usingSystem.Collections.Generic;namespaceGenericMethodAppl{classProgram{staticvoidSwap<T>(refTlhs,refT
usingSystem;namespaceOperatorsAppl{classProgram{staticvoidMain(string[]args){boola=true;boolb=true;if(a&&b){Cons
usingSystem;namespaceUserDefinedException{classTestTemperature{staticvoidMain(string[]args){Temperaturetemp=newTemperatu
usingSystem;usingSystem.Collections;namespaceCollectionsApplication{classProgram{staticvoidMain(string[]args){Hashtableh
usingSystem;publicclassDemo{publicstaticvoidMain(){inta=0,myWord=1;stringstr="HelloWorld!";while(a<=str.Len
usingSystem;usingSystem.Text.RegularExpressions;namespaceRegExApplication{classProgram{privatestaticvoidshowMatch(string