C#/.NET实例代码
using System;using System.Text.RegularExpressions;namespace RegExApplication {class Program {static void Main(string[] args) {
发布时间:2023-10-11
using System;using System.IO;namespace BinaryFileApplication {class Program {static void Main(string[] args) {
发布时间:2023-10-11
#define DEBUGusing System;using System.Diagnostics;public class Myclass {[Conditional(DEBUG)]
发布时间:2023-10-11
using System;using System.Reflection;namespace BugFixApplication {//a custom attribute BugFix to be//assigned to a class and its members
发布时间:2023-10-11
using System;using System.Collections.Generic;delegate T NumberChangerT(T n);namespace GenericDelegateAppl {
发布时间:2023-10-11
using System;delegate void NumberChanger(int n);namespace DelegateAppl {class TestDelegate {static int num = 10;
发布时间:2023-10-11
using System.Collections.Generic;using System.Linq;using System.Text;using System;namespace InterfaceApplication {
发布时间:2023-10-11
using System;namespace first_space {class namespace_cl {public void func() {Console.WriteLine(Inside first_space);
发布时间:2023-10-11
using System;using first_space;using second_space;namespace first_space {class abc {public void func() {
发布时间:2023-10-11
using System;using first_space;using first_space.second_space;namespace first_space {class abc {public void func() {
发布时间:2023-10-11
#define DEBUG#define VC_V10using System;public class TestClass {public static void Main() {#if (DEBUG !VC_V10)
发布时间:2023-10-11
using System;using System.Text.RegularExpressions;namespace RegExApplication {class Program {private static void showMatch(string text, string expr) {
发布时间:2023-10-11
using System;using System.IO;namespace FileApplication {class Program {static void Main(string[] args) {
发布时间:2023-10-11
using System;using System.IO;namespace FileIOApplication {class Program {static void Main(string[] args) {
发布时间:2023-10-11
using System;namespace UserDefinedException {class TestTemperature {static void Main(string[] args) {
发布时间:2023-10-11