C#/.NET实例代码

[C#/.NET实例代码]C#反射DeBugInfo

using System;using System.Reflection;namespace BugFixApplication {//a custom attribute BugFix to be//assigned to a class and its members
发布时间:2023-10-11  

[C#/.NET实例代码]C#泛型委托

using System;using System.Collections.Generic;delegate T NumberChangerT(T n);namespace GenericDelegateAppl {
发布时间:2023-10-11  

[C#/.NET实例代码]C#匿名方法

using System;delegate void NumberChanger(int n);namespace DelegateAppl {class TestDelegate {static int num = 10;
发布时间:2023-10-11  

[C#/.NET实例代码]C#接口

using System.Collections.Generic;using System.Linq;using System.Text;using System;namespace InterfaceApplication {
发布时间:2023-10-11  

[C#/.NET实例代码]C#条件指令

#define DEBUG#define VC_V10using System;public class TestClass {public static void Main() {#if (DEBUG !VC_V10)
发布时间:2023-10-11  

[C#/.NET实例代码]C#正则表达式示例1

using System;using System.Text.RegularExpressions;namespace RegExApplication {class Program {private static void showMatch(string text, string expr) {
发布时间:2023-10-11  

[C#/.NET实例代码]C#文件I/O

using System;using System.IO;namespace FileIOApplication {class Program {static void Main(string[] args) {
发布时间:2023-10-11