C#其他运算符
usingSystem;namespaceOperatorsAppl{classProgram{staticvoidMain(string[]args){/*exampleofsizeofoperator*/Console.WriteLin
usingSystem;namespaceOperatorsAppl{classProgram{staticvoidMain(string[]args){/*exampleofsizeofoperator*/Console.WriteLin
usingSystem;usingSystem.Collections.Generic;usingSystem.Text;namespaceDemo{classMyApplication{staticvoidMain(string[]arg
usingSystem;usingSystem.Text.RegularExpressions;namespaceRegExApplication{classProgram{privatestaticvoidshowMatch(string
usingSystem;namespaceMyApplication{classFactorial{publicintdisplay(intn){intres=1;while(n!=1){res=res*n;n=n-1;}returnres
#defineDEBUGusingSystem;usingSystem.Diagnostics;publicclassMyclass{[Conditional("DEBUG")]publicstaticvoidMessa
usingSystem;publicclassDemo{publicstaticvoidMain(){stringmyStr;inti,len,vowel_count,cons_count;myStr="Avengers"
#defineDEBUG#defineVC_V10usingSystem;publicclassTestClass{publicstaticvoidMain(){#if(DEBUG&&!VC_V10)Console.Writ
usingSystem;namespaceLoops{classProgram{staticvoidMain(string[]args){/*localvariabledefinition*/inta=10;/*doloopexecutio
usingSystem;namespacePolymorphismApplication{abstractclassShape{publicabstractintarea();}classRectangle:Shape{privateint
usingSystem;usingSystem.Collections;namespaceCollectionsApplication{classProgram{staticvoidMain(string[]args){//creating
usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;namespaceDemo{classMyApplication{staticvoi
usingSystem;namespaceArrayApplication{classMyArray{staticvoidMain(string[]args){int[]n=newint[5];inti,j;/*begingsfromind
usingSystem;namespaceArrayApplication{classMyArray{staticvoidMain(string[]args){int[]n=newint[10];/*nisanarrayof10intege
usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;namespaceMyAplication{classDemo{staticvoid
usingSystem;namespaceRectangleApplication{classRectangle{//membervariablesprivatedoublelength;privatedoublewidth;publicv
usingSystem;usingSystem.Threading;namespaceDemo{classMyClass{staticvoidMain(string[]args){Threadthread=Thread.CurrentThr
usingSystem;publicclassDemo{publicstaticlongfuncReverse(longnum){longmyRev=0;while(num>0){myRev<<=1;if((num&
usingSystem;namespaceMySpecifiers{classDemo{protectedstringname="Website";protectedvoidDisplay(stringstr){Cons
usingSystem;classDemo{staticvoidMain(){stringinput="https://example.com/new.html";//Seeifinputmatchesoneofthes
usingSystem;classProgram{staticvoidMain(){stringstr1="Tom";//concatenationstringstr2=string.Concat("Hanks