C#正则表达式示例3
usingSystem;usingSystem.Text.RegularExpressions;namespaceRegExApplication{classProgram{staticvoidMain(string[]args){stri
usingSystem;usingSystem.Text.RegularExpressions;namespaceRegExApplication{classProgram{staticvoidMain(string[]args){stri
usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;namespaceDemo{classMyApplication{staticvoi
usingSystem;classMyApplication{staticvoidMain(string[]args){Strings;intnum=299;s=num.ToString();Console.WriteLine("
#definePIusingSystem;namespacePreprocessorDAppl{classProgram{staticvoidMain(string[]args){#if(PI)Console.WriteLine("
usingSystem;namespaceCalculatorApplication{classNumberManipulator{publicvoidgetValue(outintx){inttemp=5;x=temp;}staticvo
usingSystem;usingSystem.Collections;namespaceCollectionsApplication{classProgram{staticvoidMain(string[]args){Queueq=new
usingSystem;namespaceOperatorsAppl{classProgram{staticvoidMain(string[]args){inta=21;intb=10;intc;c=a+b;Console.WriteLin
usingSystem;namespaceMySpecifiers{classDemo{protectedstringname="Website";protectedvoidDisplay(stringstr){Cons
usingSystem;usingSystem.Collections.Generic;namespaceGenericApplication{publicclassMyGenericArray<T>{privateT[]arr
usingSystem;usingSystem.Collections.Generic;classProgram{staticvoidMain(){LinkedList<string>myList=newLinkedList&l
usingSystem;publicclassMyClass{[Obsolete("Don'tuseOldMethod,useNewMethodinstead",true)]staticvoidOldMethod
usingSystem;usingSystem.Collections.Generic;usingSystem.Text;namespaceDemo{classMyApplication{staticvoidMain(string[]arg
usingSystem;namespaceDecisionMaking{classProgram{staticvoidMain(string[]args){/*localvariabledefinition*/inta=10;/*check
usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;namespaceDemo{classMyApplication{staticvoi
usingSystem;namespaceVariableDefinition{classProgram{staticvoidMain(string[]args){shorta;intb;doublec;/*actualinitializa
usingSystem;usingfirst_space;usingfirst_space.second_space;namespacefirst_space{classabc{publicvoidfunc(){Console.WriteL
namespaceRectangleApplication{classRectangle{//membervariablespublicdoublelength;publicdoublewidth;publicdoubleGetArea()
usingSystem;namespaceArrayApplication{classMyArray{staticvoidMain(string[]args){int[]n=newint[10];/*nisanarrayof10intege
usingSystem;delegatevoidNumberChanger(intn);namespaceDelegateAppl{classTestDelegate{staticintnum=10;publicstaticvoidAddN
usingSystem;namespaceCalculatorApplication{classNumberManipulator{publicintFindMax(intnum1,intnum2){/*localvariabledecla