C#/.NET实例代码

[C#/.NET实例代码]C#访问修饰符

using System;namespace MySpecifiers{class Demo{protected string name = Website;protected void Display(string str)
发布时间:2023-10-11  

[C#/.NET实例代码]C#数组声明

using System;namespace MyApplication {class MyClass {static void Main(string[] args) {// n is an array of 5 integers
发布时间:2023-10-11  

[C#/.NET实例代码]C#抽象属性

using System;namespace yiibai {public abstract class Person {public abstract string Name {get;set;}public abstract int Age {
发布时间:2023-10-11  

[C#/.NET实例代码]C#委托多播

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

[C#/.NET实例代码]C#使用委托

using System;using System.IO;namespace DelegateAppl {class PrintString {static FileStream fs;static StreamWriter sw;
发布时间:2023-10-11  

[C#/.NET实例代码]C#事件

using System;namespace SampleApp {public delegate string MyDel(string str);class EventProgram {event MyDel MyEvent;
发布时间:2023-10-11  

[C#/.NET实例代码]C# Stack类

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

[C#/.NET实例代码]C# SortedList类

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

[C#/.NET实例代码]C# Hashtable类

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

[C#/.NET实例代码]C# ArrayList类

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

[C#/.NET实例代码]C# BitArray类

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

[C#/.NET实例代码]C#泛型方法

using System;using System.Collections.Generic;namespace GenericMethodAppl {class Program {static void SwapT(ref T lhs, ref T rhs) {
发布时间:2023-10-11