在好例子网,分享、交流、成长!
您当前所在位置:首页C# 开发实例C#语言基础 → C#新手教程(四):面向对象编程技术(源代码)

C#新手教程(四):面向对象编程技术(源代码)

C#语言基础

下载此实例
  • 开发语言:C#
  • 实例大小:43.52M
  • 下载次数:65
  • 浏览次数:365
  • 发布时间:2019-07-23
  • 实例类别:C#语言基础
  • 发 布 人:crazycode
  • 文件格式:.rar
  • 所需积分:2
 相关标签: 新手 数组 教程 C#

实例介绍

【实例简介】

【实例截图】

from clipboard

【核心代码】

'01 属性和方法'/


'001 使用属性存储用户编号和姓名-例1'/
'002 通过定义方法求一个数的平方-例1'/
'003 使用重载方法实现不同类型数据的计算-例1'/




'02 结构与类'/

'001 通过结构计算矩形的面积-例1'/
'002 通过类继承计算梯形面积-例1'/
'003 封装类实现一个简单的计算器-例1'/
'004 使用面向对象思想查找字符串中的所有数字-例1'/





'03 面向对象技术高级应用'/

'001 自定义抽象类计算圆形的面积-例1'/
'002 利用接口实现选择不同的语言-例1'/
'003 使用密封类密封用户信息-例1'/
'004 通过重写虚方法实现加法运算-例1'/
'005 通过类的多态性确定人类的说话行为-例1'/





'04 迭代器和分部类的使用'/


'001 使用迭代器显示公交车站点-例1'/
'002 使用迭代器实现倒序遍历-例1'/
'003 使用迭代器实现文字的动态效果-例1'/
'004 使用分部类实现多种计算方法-例1'/
'005 使用分部类记录学生信息-例1'/




'05 泛型的使用'/


'001 使用泛型存储不同类型的数据列表-例1'/
'002 通过泛型查找不同数组中的值-例1'/
'003 通过继承泛型类实现输出学生信息-例1'/
'004 通过泛型实现子窗体的不同操作-例1'/
'005 使用泛型去掉数组中的重复数字-例1'/



【文件目录】

05 面向对象编程技术
├── 01 属性和方法
│   ├── 001 使用属性存储用户编号和姓名-例1
│   │   └── StoreIDAndName
│   │       ├── Backup
│   │       │   ├── StoreIDAndName
│   │       │   │   ├── Form1.cs
│   │       │   │   ├── Form1.designer.cs
│   │       │   │   ├── Form1.resx
│   │       │   │   ├── Program.cs
│   │       │   │   ├── Properties
│   │       │   │   │   ├── AssemblyInfo.cs
│   │       │   │   │   ├── Resources.Designer.cs
│   │       │   │   │   ├── Resources.resx
│   │       │   │   │   ├── Settings.Designer.cs
│   │       │   │   │   └── Settings.settings
│   │       │   │   └── StoreIDAndName.csproj
│   │       │   └── StoreIDAndName.sln
│   │       ├── StoreIDAndName
│   │       │   ├── Form1.cs
│   │       │   ├── Form1.designer.cs
│   │       │   ├── Form1.resx
│   │       │   ├── Program.cs
│   │       │   ├── Properties
│   │       │   │   ├── AssemblyInfo.cs
│   │       │   │   ├── Resources.Designer.cs
│   │       │   │   ├── Resources.resx
│   │       │   │   ├── Settings.Designer.cs
│   │       │   │   └── Settings.settings
│   │       │   ├── StoreIDAndName.csproj
│   │       │   ├── bin
│   │       │   │   └── Debug
│   │       │   │       ├── StoreIDAndName.exe
│   │       │   │       ├── StoreIDAndName.pdb
│   │       │   │       ├── StoreIDAndName.vshost.exe
│   │       │   │       └── StoreIDAndName.vshost.exe.manifest
│   │       │   └── obj
│   │       │       └── Debug
│   │       │           ├── DesignTimeResolveAssemblyReferences.cache
│   │       │           ├── DesignTimeResolveAssemblyReferencesInput.cache
│   │       │           ├── Refactor
│   │       │           ├── StoreIDAndName.Form1.resources
│   │       │           ├── StoreIDAndName.Properties.Resources.resources
│   │       │           ├── StoreIDAndName.csproj.CoreCompileInputs.cache
│   │       │           ├── StoreIDAndName.csproj.FileListAbsolute.txt
│   │       │           ├── StoreIDAndName.csproj.GenerateResource.Cache
│   │       │           ├── StoreIDAndName.csprojAssemblyReference.cache
│   │       │           ├── StoreIDAndName.exe
│   │       │           ├── StoreIDAndName.pdb
│   │       │           └── TempPE
│   │       │               └── Properties.Resources.Designer.cs.dll
│   │       ├── StoreIDAndName.sln
│   │       ├── StoreIDAndName.suo
│   │       └── UpgradeLog.htm
│   ├── 002 通过定义方法求一个数的平方-例1
│   │   └── SquareByMethod
│   │       ├── SquareByMethod
│   │       │   ├── Form1.Designer.cs
│   │       │   ├── Form1.cs
│   │       │   ├── Form1.resx
│   │       │   ├── Program.cs
│   │       │   ├── Properties
│   │       │   │   ├── AssemblyInfo.cs
│   │       │   │   ├── Resources.Designer.cs
│   │       │   │   ├── Resources.resx
│   │       │   │   ├── Settings.Designer.cs
│   │       │   │   └── Settings.settings
│   │       │   ├── SquareByMethod.csproj
│   │       │   ├── bin
│   │       │   │   └── Debug
│   │       │   │       ├── SquareByMethod.exe
│   │       │   │       ├── SquareByMethod.pdb
│   │       │   │       ├── SquareByMethod.vshost.exe
│   │       │   │       └── SquareByMethod.vshost.exe.manifest
│   │       │   └── obj
│   │       │       └── Debug
│   │       │           ├── SquareByMethod.Form1.resources
│   │       │           ├── SquareByMethod.Properties.Resources.resources
│   │       │           ├── SquareByMethod.csproj.FileListAbsolute.txt
│   │       │           ├── SquareByMethod.csproj.GenerateResource.Cache
│   │       │           ├── SquareByMethod.exe
│   │       │           ├── SquareByMethod.pdb
│   │       │           └── TempPE
│   │       ├── SquareByMethod.sln
│   │       └── SquareByMethod.suo
│   └── 003 使用重载方法实现不同类型数据的计算-例1
│       └── TypesCalc
│           ├── TypesCalc
│           │   ├── Form1.cs
│           │   ├── Form1.designer.cs
│           │   ├── Form1.resx
│           │   ├── Program.cs
│           │   ├── Properties
│           │   │   ├── AssemblyInfo.cs
│           │   │   ├── Resources.Designer.cs
│           │   │   ├── Resources.resx
│           │   │   ├── Settings.Designer.cs
│           │   │   └── Settings.settings
│           │   ├── TypesCalc.csproj
│           │   ├── bin
│           │   │   └── Debug
│           │   │       ├── TypesCalc.exe
│           │   │       ├── TypesCalc.pdb
│           │   │       ├── TypesCalc.vshost.exe
│           │   │       └── TypesCalc.vshost.exe.manifest
│           │   └── obj
│           │       └── Debug
│           │           ├── TempPE
│           │           ├── TypesCalc.Form1.resources
│           │           ├── TypesCalc.Properties.Resources.resources
│           │           ├── TypesCalc.csproj.FileListAbsolute.txt
│           │           ├── TypesCalc.csproj.GenerateResource.Cache
│           │           ├── TypesCalc.exe
│           │           └── TypesCalc.pdb
│           ├── TypesCalc.sln
│           └── TypesCalc.suo
├── 02 结构与类
│   ├── 001 通过结构计算矩形的面积-例1
│   │   └── GetRAreaByStruct
│   │       ├── GetRAreaByStruct
│   │       │   ├── Form1.cs
│   │       │   ├── Form1.designer.cs
│   │       │   ├── Form1.resx
│   │       │   ├── GetRAreaByStruct.csproj
│   │       │   ├── Program.cs
│   │       │   ├── Properties
│   │       │   │   ├── AssemblyInfo.cs
│   │       │   │   ├── Resources.Designer.cs
│   │       │   │   ├── Resources.resx
│   │       │   │   ├── Settings.Designer.cs
│   │       │   │   └── Settings.settings
│   │       │   ├── bin
│   │       │   │   └── Debug
│   │       │   │       ├── GetRAreaByStruct.exe
│   │       │   │       ├── GetRAreaByStruct.pdb
│   │       │   │       ├── GetRAreaByStruct.vshost.exe
│   │       │   │       └── GetRAreaByStruct.vshost.exe.manifest
│   │       │   └── obj
│   │       │       └── Debug
│   │       │           ├── GetRAreaByStruct.Form1.resources
│   │       │           ├── GetRAreaByStruct.Properties.Resources.resources
│   │       │           ├── GetRAreaByStruct.csproj.FileListAbsolute.txt
│   │       │           ├── GetRAreaByStruct.csproj.GenerateResource.Cache
│   │       │           ├── GetRAreaByStruct.exe
│   │       │           ├── GetRAreaByStruct.pdb
│   │       │           └── TempPE
│   │       ├── GetRAreaByStruct.sln
│   │       └── GetRAreaByStruct.suo
│   ├── 002 通过类继承计算梯形面积-例1
│   │   └── GetTAreaByClass
│   │       ├── GetTAreaByClass
│   │       │   ├── Form1.cs
│   │       │   ├── Form1.designer.cs
│   │       │   ├── Form1.resx
│   │       │   ├── GetTAreaByClass.csproj
│   │       │   ├── Program.cs
│   │       │   ├── Properties
│   │       │   │   ├── AssemblyInfo.cs
│   │       │   │   ├── Resources.Designer.cs
│   │       │   │   ├── Resources.resx
│   │       │   │   ├── Settings.Designer.cs
│   │       │   │   └── Settings.settings
│   │       │   ├── bin
│   │       │   │   └── Debug
│   │       │   │       ├── GetTAreaByClass.exe
│   │       │   │       ├── GetTAreaByClass.pdb
│   │       │   │       ├── GetTAreaByClass.vshost.exe
│   │       │   │       └── GetTAreaByClass.vshost.exe.manifest
│   │       │   └── obj
│   │       │       └── Debug
│   │       │           ├── GetTAreaByClass.Form1.resources
│   │       │           ├── GetTAreaByClass.Properties.Resources.resources
│   │       │           ├── GetTAreaByClass.csproj.FileListAbsolute.txt
│   │       │           ├── GetTAreaByClass.csproj.GenerateResource.Cache
│   │       │           ├── GetTAreaByClass.exe
│   │       │           ├── GetTAreaByClass.pdb
│   │       │           └── TempPE
│   │       ├── GetTAreaByClass.sln
│   │       └── GetTAreaByClass.suo
│   ├── 003 封装类实现一个简单的计算器-例1
│   │   └── CalcByClass
│   │       ├── CalcByClass
│   │       │   ├── CalcByClass.csproj
│   │       │   ├── Form1.cs
│   │       │   ├── Form1.designer.cs
│   │       │   ├── Form1.resx
│   │       │   ├── Program.cs
│   │       │   ├── Properties
│   │       │   │   ├── AssemblyInfo.cs
│   │       │   │   ├── Resources.Designer.cs
│   │       │   │   ├── Resources.resx
│   │       │   │   ├── Settings.Designer.cs
│   │       │   │   └── Settings.settings
│   │       │   ├── bin
│   │       │   │   └── Debug
│   │       │   │       ├── CalcByClass.exe
│   │       │   │       ├── CalcByClass.pdb
│   │       │   │       ├── CalcByClass.vshost.exe
│   │       │   │       └── CalcByClass.vshost.exe.manifest
│   │       │   └── obj
│   │       │       └── Debug
│   │       │           ├── CalcByClass.Form1.resources
│   │       │           ├── CalcByClass.Properties.Resources.resources
│   │       │           ├── CalcByClass.csproj.FileListAbsolute.txt
│   │       │           ├── CalcByClass.csproj.GenerateResource.Cache
│   │       │           ├── CalcByClass.exe
│   │       │           ├── CalcByClass.pdb
│   │       │           └── TempPE
│   │       ├── CalcByClass.sln
│   │       └── CalcByClass.suo
│   └── 004 使用面向对象思想查找字符串中的所有数字-例1
│       └── GetNumInString
│           ├── GetNumInString
│           │   ├── Form1.cs
│           │   ├── Form1.designer.cs
│           │   ├── Form1.resx
│           │   ├── GetNumInString.csproj
│           │   ├── Program.cs
│           │   ├── Properties
│           │   │   ├── AssemblyInfo.cs
│           │   │   ├── Resources.Designer.cs
│           │   │   ├── Resources.resx
│           │   │   ├── Settings.Designer.cs
│           │   │   └── Settings.settings
│           │   ├── bin
│           │   │   └── Debug
│           │   │       ├── GetNumInString.exe
│           │   │       ├── GetNumInString.pdb
│           │   │       ├── GetNumInString.vshost.exe
│           │   │       └── GetNumInString.vshost.exe.manifest
│           │   └── obj
│           │       └── Debug
│           │           ├── GetNumInString.Form1.resources
│           │           ├── GetNumInString.Properties.Resources.resources
│           │           ├── GetNumInString.csproj.FileListAbsolute.txt
│           │           ├── GetNumInString.csproj.GenerateResource.Cache
│           │           ├── GetNumInString.exe
│           │           ├── GetNumInString.pdb
│           │           └── TempPE
│           ├── GetNumInString.sln
│           └── GetNumInString.suo
├── 03 面向对象技术高级应用
│   ├── 001 自定义抽象类计算圆形的面积-例1
│   │   └── CalcRAreaByAbstractClass
│   │       ├── CalcRAreaByAbstractClass
│   │       │   ├── CalcRAreaByAbstractClass.csproj
│   │       │   ├── Form1.cs
│   │       │   ├── Form1.designer.cs
│   │       │   ├── Form1.resx
│   │       │   ├── Program.cs
│   │       │   ├── Properties
│   │       │   │   ├── AssemblyInfo.cs
│   │       │   │   ├── Resources.Designer.cs
│   │       │   │   ├── Resources.resx
│   │       │   │   ├── Settings.Designer.cs
│   │       │   │   └── Settings.settings
│   │       │   ├── bin
│   │       │   │   └── Debug
│   │       │   │       ├── CalcRAreaByAbstractClass.exe
│   │       │   │       ├── CalcRAreaByAbstractClass.pdb
│   │       │   │       ├── CalcRAreaByAbstractClass.vshost.exe
│   │       │   │       └── CalcRAreaByAbstractClass.vshost.exe.manifest
│   │       │   └── obj
│   │       │       └── Debug
│   │       │           ├── CalcRAreaByAbstractClass.Form1.resources
│   │       │           ├── CalcRAreaByAbstractClass.Properties.Resources.resources
│   │       │           ├── CalcRAreaByAbstractClass.csproj.FileListAbsolute.txt
│   │       │           ├── CalcRAreaByAbstractClass.csproj.GenerateResource.Cache
│   │       │           ├── CalcRAreaByAbstractClass.exe
│   │       │           ├── CalcRAreaByAbstractClass.pdb
│   │       │           └── TempPE
│   │       ├── CalcRAreaByAbstractClass.sln
│   │       └── CalcRAreaByAbstractClass.suo
│   ├── 002 利用接口实现选择不同的语言-例1
│   │   └── AppInterface
│   │       ├── AppInterface
│   │       │   ├── AppInterface.csproj
│   │       │   ├── Form1.cs
│   │       │   ├── Form1.designer.cs
│   │       │   ├── Form1.resx
│   │       │   ├── Program.cs
│   │       │   ├── Properties
│   │       │   │   ├── AssemblyInfo.cs
│   │       │   │   ├── Resources.Designer.cs
│   │       │   │   ├── Resources.resx
│   │       │   │   ├── Settings.Designer.cs
│   │       │   │   └── Settings.settings
│   │       │   ├── bin
│   │       │   │   └── Debug
│   │       │   │       ├── AppInterface.exe
│   │       │   │       ├── AppInterface.pdb
│   │       │   │       ├── AppInterface.vshost.exe
│   │       │   │       └── AppInterface.vshost.exe.manifest
│   │       │   └── obj
│   │       │       └── Debug
│   │       │           ├── AppInterface.Form1.resources
│   │       │           ├── AppInterface.Properties.Resources.resources
│   │       │           ├── AppInterface.csproj.FileListAbsolute.txt
│   │       │           ├── AppInterface.csproj.GenerateResource.Cache
│   │       │           ├── AppInterface.exe
│   │       │           ├── AppInterface.pdb
│   │       │           └── TempPE
│   │       ├── AppInterface.sln
│   │       └── AppInterface.suo
│   ├── 003 使用密封类密封用户信息-例1
│   │   └── SealedUserInfo
│   │       ├── SealedUserInfo
│   │       │   ├── Form1.cs
│   │       │   ├── Form1.designer.cs
│   │       │   ├── Form1.resx
│   │       │   ├── Program.cs
│   │       │   ├── Properties
│   │       │   │   ├── AssemblyInfo.cs
│   │       │   │   ├── Resources.Designer.cs
│   │       │   │   ├── Resources.resx
│   │       │   │   ├── Settings.Designer.cs
│   │       │   │   └── Settings.settings
│   │       │   ├── SealedUserInfo.csproj
│   │       │   ├── bin
│   │       │   │   └── Debug
│   │       │   │       ├── SealedUserInfo.exe
│   │       │   │       ├── SealedUserInfo.pdb
│   │       │   │       ├── SealedUserInfo.vshost.exe
│   │       │   │       └── SealedUserInfo.vshost.exe.manifest
│   │       │   └── obj
│   │       │       └── Debug
│   │       │           ├── SealedUserInfo.Form1.resources
│   │       │           ├── SealedUserInfo.Properties.Resources.resources
│   │       │           ├── SealedUserInfo.csproj.FileListAbsolute.txt
│   │       │           ├── SealedUserInfo.csproj.GenerateResource.Cache
│   │       │           ├── SealedUserInfo.exe
│   │       │           ├── SealedUserInfo.pdb
│   │       │           └── TempPE
│   │       ├── SealedUserInfo.sln
│   │       └── SealedUserInfo.suo
│   ├── 004 通过重写虚方法实现加法运算-例1
│   │   └── AddByVirtualMethod
│   │       ├── AddByVirtualMethod
│   │       │   ├── AddByVirtualMethod.csproj
│   │       │   ├── Form1.cs
│   │       │   ├── Form1.designer.cs
│   │       │   ├── Form1.resx
│   │       │   ├── Program.cs
│   │       │   ├── Properties
│   │       │   │   ├── AssemblyInfo.cs
│   │       │   │   ├── Resources.Designer.cs
│   │       │   │   ├── Resources.resx
│   │       │   │   ├── Settings.Designer.cs
│   │       │   │   └── Settings.settings
│   │       │   ├── bin
│   │       │   │   └── Debug
│   │       │   │       ├── AddByVirtualMethod.exe
│   │       │   │       ├── AddByVirtualMethod.pdb
│   │       │   │       ├── AddByVirtualMethod.vshost.exe
│   │       │   │       └── AddByVirtualMethod.vshost.exe.manifest
│   │       │   └── obj
│   │       │       └── Debug
│   │       │           ├── AddByVirtualMethod.Form1.resources
│   │       │           ├── AddByVirtualMethod.Properties.Resources.resources
│   │       │           ├── AddByVirtualMethod.csproj.FileListAbsolute.txt
│   │       │           ├── AddByVirtualMethod.csproj.GenerateResource.Cache
│   │       │           ├── AddByVirtualMethod.exe
│   │       │           ├── AddByVirtualMethod.pdb
│   │       │           └── TempPE
│   │       ├── AddByVirtualMethod.sln
│   │       └── AddByVirtualMethod.suo
│   └── 005 通过类的多态性确定人类的说话行为-例1
│       ├── PeopleSpeakByMState
│       │   ├── PeopleSpeakByMState
│       │   │   ├── Form1.Designer.cs
│       │   │   ├── Form1.cs
│       │   │   ├── Form1.resx
│       │   │   ├── PeopleSpeakByMState.csproj
│       │   │   ├── Program.cs
│       │   │   ├── Properties
│       │   │   │   ├── AssemblyInfo.cs
│       │   │   │   ├── Resources.Designer.cs
│       │   │   │   ├── Resources.resx
│       │   │   │   ├── Settings.Designer.cs
│       │   │   │   └── Settings.settings
│       │   │   ├── bin
│       │   │   │   └── Debug
│       │   │   │       ├── PeopleSpeakByMState.exe
│       │   │   │       ├── PeopleSpeakByMState.pdb
│       │   │   │       ├── PeopleSpeakByMState.vshost.exe
│       │   │   │       └── PeopleSpeakByMState.vshost.exe.manifest
│       │   │   └── obj
│       │   │       └── Debug
│       │   │           ├── PeopleSpeakByMState.Form1.resources
│       │   │           ├── PeopleSpeakByMState.Properties.Resources.resources
│       │   │           ├── PeopleSpeakByMState.csproj.FileListAbsolute.txt
│       │   │           ├── PeopleSpeakByMState.csproj.GenerateResource.Cache
│       │   │           ├── PeopleSpeakByMState.exe
│       │   │           ├── PeopleSpeakByMState.pdb
│       │   │           └── TempPE
│       │   ├── PeopleSpeakByMState.sln
│       │   └── PeopleSpeakByMState.suo
│       └── 通过类的多态性确定人类的说话行为.exe
├── 04 迭代器和分部类的使用
│   ├── 001 使用迭代器显示公交车站点-例1
│   │   ├── ShowBusStation
│   │   │   ├── ShowBusStation
│   │   │   │   ├── Form1.cs
│   │   │   │   ├── Form1.designer.cs
│   │   │   │   ├── Form1.resx
│   │   │   │   ├── Program.cs
│   │   │   │   ├── Properties
│   │   │   │   │   ├── AssemblyInfo.cs
│   │   │   │   │   ├── Resources.Designer.cs
│   │   │   │   │   ├── Resources.resx
│   │   │   │   │   ├── Settings.Designer.cs
│   │   │   │   │   └── Settings.settings
│   │   │   │   ├── ShowBusStation.csproj
│   │   │   │   ├── bin
│   │   │   │   │   └── Debug
│   │   │   │   │       ├── ShowBusStation.exe
│   │   │   │   │       ├── ShowBusStation.pdb
│   │   │   │   │       ├── ShowBusStation.vshost.exe
│   │   │   │   │       └── ShowBusStation.vshost.exe.manifest
│   │   │   │   └── obj
│   │   │   │       └── Debug
│   │   │   │           ├── ShowBusStation.Form1.resources
│   │   │   │           ├── ShowBusStation.Properties.Resources.resources
│   │   │   │           ├── ShowBusStation.csproj.FileListAbsolute.txt
│   │   │   │           ├── ShowBusStation.csproj.GenerateResource.Cache
│   │   │   │           ├── ShowBusStation.exe
│   │   │   │           ├── ShowBusStation.pdb
│   │   │   │           └── TempPE
│   │   │   ├── ShowBusStation.sln
│   │   │   └── ShowBusStation.suo
│   │   └── 使用迭代器显示公交车站点.exe
│   ├── 002 使用迭代器实现倒序遍历-例1
│   │   └── ReverseOrder
│   │       ├── ReverseOrder
│   │       │   ├── Form1.cs
│   │       │   ├── Form1.designer.cs
│   │       │   ├── Form1.resx
│   │       │   ├── Program.cs
│   │       │   ├── Properties
│   │       │   │   ├── AssemblyInfo.cs
│   │       │   │   ├── Resources.Designer.cs
│   │       │   │   ├── Resources.resx
│   │       │   │   ├── Settings.Designer.cs
│   │       │   │   └── Settings.settings
│   │       │   ├── ReverseOrder.csproj
│   │       │   ├── bin
│   │       │   │   └── Debug
│   │       │   │       ├── ReverseOrder.exe
│   │       │   │       ├── ReverseOrder.pdb
│   │       │   │       ├── ReverseOrder.vshost.exe
│   │       │   │       └── ReverseOrder.vshost.exe.manifest
│   │       │   └── obj
│   │       │       └── Debug
│   │       │           ├── ReverseOrder.Form1.resources
│   │       │           ├── ReverseOrder.Properties.Resources.resources
│   │       │           ├── ReverseOrder.csproj.FileListAbsolute.txt
│   │       │           ├── ReverseOrder.csproj.GenerateResource.Cache
│   │       │           ├── ReverseOrder.exe
│   │       │           ├── ReverseOrder.pdb
│   │       │           └── TempPE
│   │       ├── ReverseOrder.sln
│   │       └── ReverseOrder.suo
│   ├── 003 使用迭代器实现文字的动态效果-例1
│   │   └── DynamicLetter
│   │       ├── DynamicLetter
│   │       │   ├── DynamicLetter.csproj
│   │       │   ├── Form1.cs
│   │       │   ├── Form1.designer.cs
│   │       │   ├── Form1.resx
│   │       │   ├── Program.cs
│   │       │   ├── Properties
│   │       │   │   ├── AssemblyInfo.cs
│   │       │   │   ├── Resources.Designer.cs
│   │       │   │   ├── Resources.resx
│   │       │   │   ├── Settings.Designer.cs
│   │       │   │   └── Settings.settings
│   │       │   ├── bin
│   │       │   │   └── Debug
│   │       │   │       ├── DynamicLetter.exe
│   │       │   │       ├── DynamicLetter.pdb
│   │       │   │       ├── DynamicLetter.vshost.exe
│   │       │   │       ├── DynamicLetter.vshost.exe.manifest
│   │       │   │       ├── Thumbs.db
│   │       │   │       ├── bc.jpg
│   │       │   │       └── text.jpg
│   │       │   └── obj
│   │       │       └── Debug
│   │       │           ├── DynamicLetter.Form1.resources
│   │       │           ├── DynamicLetter.Properties.Resources.resources
│   │       │           ├── DynamicLetter.csproj.FileListAbsolute.txt
│   │       │           ├── DynamicLetter.csproj.GenerateResource.Cache
│   │       │           ├── DynamicLetter.exe
│   │       │           ├── DynamicLetter.pdb
│   │       │           └── TempPE
│   │       │               └── Properties.Resources.Designer.cs.dll
│   │       ├── DynamicLetter.sln
│   │       └── DynamicLetter.suo
│   ├── 004 使用分部类实现多种计算方法-例1
│   │   └── BranchMeans
│   │       ├── BranchMeans
│   │       │   ├── Account.cs
│   │       │   ├── BranchMeans.csproj
│   │       │   ├── Form1.Designer.cs
│   │       │   ├── Form1.cs
│   │       │   ├── Form1.resx
│   │       │   ├── Image
│   │       │   │   ├── 0.png
│   │       │   │   ├── 0_1.png
│   │       │   │   ├── 1.png
│   │       │   │   ├── 1_1.png
│   │       │   │   ├── 2.png
│   │       │   │   ├── 2_1.png
│   │       │   │   ├── 3.png
│   │       │   │   ├── 3_1.png
│   │       │   │   ├── 4.png
│   │       │   │   ├── 4_1.png
│   │       │   │   ├── 5.png
│   │       │   │   ├── 5_1.png
│   │       │   │   ├── 6.png
│   │       │   │   ├── 6_1.png
│   │       │   │   ├── 7.png
│   │       │   │   ├── 7_1.png
│   │       │   │   ├── 8.png
│   │       │   │   ├── 8_1.png
│   │       │   │   ├── 9.png
│   │       │   │   ├── 9_1.png
│   │       │   │   ├── Add.png
│   │       │   │   ├── Add1.png
│   │       │   │   ├── Amound.png
│   │       │   │   ├── Amound1.png
│   │       │   │   ├── Bear.png
│   │       │   │   ├── Bear1.png
│   │       │   │   ├── Close.jpg
│   │       │   │   ├── Decr.png
│   │       │   │   ├── Decr1.png
│   │       │   │   ├── Deno.png
│   │       │   │   ├── Deno1.png
│   │       │   │   ├── Dot.png
│   │       │   │   ├── Dot1.png
│   │       │   │   ├── Humd1.png
│   │       │   │   ├── Hund.png
│   │       │   │   ├── Remove.png
│   │       │   │   ├── Remove1.png
│   │       │   │   ├── Ride.png
│   │       │   │   ├── Ride1.png
│   │       │   │   ├── Thumbs.db
│   │       │   │   ├── back.png
│   │       │   │   ├── back1.png
│   │       │   │   ├── bg.png
│   │       │   │   ├── c.png
│   │       │   │   ├── c1.png
│   │       │   │   ├── ce.png
│   │       │   │   ├── ce1.png
│   │       │   │   ├── sqrt.png
│   │       │   │   └── sqrt1.png
│   │       │   ├── Program.cs
│   │       │   ├── Properties
│   │       │   │   ├── AssemblyInfo.cs
│   │       │   │   ├── Resources.Designer.cs
│   │       │   │   ├── Resources.resx
│   │       │   │   ├── Settings.Designer.cs
│   │       │   │   └── Settings.settings
│   │       │   ├── bin
│   │       │   │   └── Debug
│   │       │   │       ├── BranchMeans.exe
│   │       │   │       ├── BranchMeans.pdb
│   │       │   │       ├── BranchMeans.vshost.exe
│   │       │   │       └── BranchMeans.vshost.exe.manifest
│   │       │   └── obj
│   │       │       └── Debug
│   │       │           ├── BranchMeans.Form1.resources
│   │       │           ├── BranchMeans.Properties.Resources.resources
│   │       │           ├── BranchMeans.csproj.FileListAbsolute.txt
│   │       │           ├── BranchMeans.csproj.GenerateResource.Cache
│   │       │           ├── BranchMeans.exe
│   │       │           ├── BranchMeans.pdb
│   │       │           └── TempPE
│   │       │               └── Properties.Resources.Designer.cs.dll
│   │       ├── BranchMeans.sln
│   │       └── BranchMeans.suo
│   └── 005 使用分部类记录学生信息-例1
│       └── StoreStuInfo
│           ├── StoreStuInfo
│           │   ├── Form1.cs
│           │   ├── Form1.designer.cs
│           │   ├── Form1.resx
│           │   ├── Program.cs
│           │   ├── Properties
│           │   │   ├── AssemblyInfo.cs
│           │   │   ├── Resources.Designer.cs
│           │   │   ├── Resources.resx
│           │   │   ├── Settings.Designer.cs
│           │   │   └── Settings.settings
│           │   ├── StoreStuInfo.csproj
│           │   ├── bin
│           │   │   └── Debug
│           │   │       ├── StoreStuInfo.exe
│           │   │       ├── StoreStuInfo.pdb
│           │   │       ├── StoreStuInfo.vshost.exe
│           │   │       └── StoreStuInfo.vshost.exe.manifest
│           │   └── obj
│           │       └── Debug
│           │           ├── StoreStuInfo.Form1.resources
│           │           ├── StoreStuInfo.Properties.Resources.resources
│           │           ├── StoreStuInfo.csproj.FileListAbsolute.txt
│           │           ├── StoreStuInfo.csproj.GenerateResource.Cache
│           │           ├── StoreStuInfo.exe
│           │           ├── StoreStuInfo.pdb
│           │           └── TempPE
│           ├── StoreStuInfo.sln
│           └── StoreStuInfo.suo
└── 05 泛型的使用
    ├── 001 使用泛型存储不同类型的数据列表-例1
    │   └── ExtensiveList
    │       ├── ExtensiveList
    │       │   ├── ExtensiveList.csproj
    │       │   ├── Form1.Designer.cs
    │       │   ├── Form1.cs
    │       │   ├── Form1.resx
    │       │   ├── Program.cs
    │       │   ├── Properties
    │       │   │   ├── AssemblyInfo.cs
    │       │   │   ├── Resources.Designer.cs
    │       │   │   ├── Resources.resx
    │       │   │   ├── Settings.Designer.cs
    │       │   │   └── Settings.settings
    │       │   ├── bin
    │       │   │   └── Debug
    │       │   │       ├── ExtensiveList.exe
    │       │   │       ├── ExtensiveList.pdb
    │       │   │       ├── ExtensiveList.vshost.exe
    │       │   │       └── ExtensiveList.vshost.exe.manifest
    │       │   └── obj
    │       │       └── Debug
    │       │           ├── ExtensiveList.Form1.resources
    │       │           ├── ExtensiveList.Properties.Resources.resources
    │       │           ├── ExtensiveList.csproj.FileListAbsolute.txt
    │       │           ├── ExtensiveList.csproj.GenerateResource.Cache
    │       │           ├── ExtensiveList.exe
    │       │           ├── ExtensiveList.pdb
    │       │           └── TempPE
    │       ├── ExtensiveList.sln
    │       └── ExtensiveList.suo
    ├── 002 通过泛型查找不同数组中的值-例1
    │   └── ArrayInfo
    │       ├── ArrayInfo
    │       │   ├── ArrayInfo.csproj
    │       │   ├── Form1.Designer.cs
    │       │   ├── Form1.cs
    │       │   ├── Form1.resx
    │       │   ├── Program.cs
    │       │   ├── Properties
    │       │   │   ├── AssemblyInfo.cs
    │       │   │   ├── Resources.Designer.cs
    │       │   │   ├── Resources.resx
    │       │   │   ├── Settings.Designer.cs
    │       │   │   └── Settings.settings
    │       │   ├── bin
    │       │   │   └── Debug
    │       │   │       ├── ArrayInfo.exe
    │       │   │       ├── ArrayInfo.pdb
    │       │   │       ├── ArrayInfo.vshost.exe
    │       │   │       └── ArrayInfo.vshost.exe.manifest
    │       │   └── obj
    │       │       └── Debug
    │       │           ├── ArrayInfo.Form1.resources
    │       │           ├── ArrayInfo.Properties.Resources.resources
    │       │           ├── ArrayInfo.csproj.FileListAbsolute.txt
    │       │           ├── ArrayInfo.csproj.GenerateResource.Cache
    │       │           ├── ArrayInfo.exe
    │       │           ├── ArrayInfo.pdb
    │       │           └── TempPE
    │       ├── ArrayInfo.sln
    │       └── ArrayInfo.suo
    ├── 003 通过继承泛型类实现输出学生信息-例1
    │   ├── ShowStuInfo
    │   │   ├── ShowStuInfo
    │   │   │   ├── Form1.cs
    │   │   │   ├── Form1.designer.cs
    │   │   │   ├── Form1.resx
    │   │   │   ├── Program.cs
    │   │   │   ├── Properties
    │   │   │   │   ├── AssemblyInfo.cs
    │   │   │   │   ├── Resources.Designer.cs
    │   │   │   │   ├── Resources.resx
    │   │   │   │   ├── Settings.Designer.cs
    │   │   │   │   └── Settings.settings
    │   │   │   ├── ShowStuInfo.csproj
    │   │   │   ├── bin
    │   │   │   │   └── Debug
    │   │   │   │       ├── ShowStuInfo.exe
    │   │   │   │       ├── ShowStuInfo.pdb
    │   │   │   │       ├── ShowStuInfo.vshost.exe
    │   │   │   │       └── ShowStuInfo.vshost.exe.manifest
    │   │   │   └── obj
    │   │   │       └── Debug
    │   │   │           ├── ShowStuInfo.Form1.resources
    │   │   │           ├── ShowStuInfo.Properties.Resources.resources
    │   │   │           ├── ShowStuInfo.csproj.FileListAbsolute.txt
    │   │   │           ├── ShowStuInfo.csproj.GenerateResource.Cache
    │   │   │           ├── ShowStuInfo.exe
    │   │   │           ├── ShowStuInfo.pdb
    │   │   │           └── TempPE
    │   │   ├── ShowStuInfo.sln
    │   │   └── ShowStuInfo.suo
    │   └── 通过继承泛型类实现输出学生信息.exe
    ├── 004 通过泛型实现子窗体的不同操作-例1
    │   └── FormDisOperate
    │       ├── FormDisOperate
    │       │   ├── Form1.cs
    │       │   ├── Form1.designer.cs
    │       │   ├── Form1.resx
    │       │   ├── Form2.cs
    │       │   ├── Form2.designer.cs
    │       │   ├── Form2.resx
    │       │   ├── FormDisOperate.csproj
    │       │   ├── Program.cs
    │       │   ├── Properties
    │       │   │   ├── AssemblyInfo.cs
    │       │   │   ├── Resources.Designer.cs
    │       │   │   ├── Resources.resx
    │       │   │   ├── Settings.Designer.cs
    │       │   │   └── Settings.settings
    │       │   ├── bin
    │       │   │   └── Debug
    │       │   │       ├── FormDisOperate.exe
    │       │   │       ├── FormDisOperate.pdb
    │       │   │       ├── FormDisOperate.vshost.exe
    │       │   │       └── FormDisOperate.vshost.exe.manifest
    │       │   └── obj
    │       │       └── Debug
    │       │           ├── FormDisOperate.Form1.resources
    │       │           ├── FormDisOperate.Form2.resources
    │       │           ├── FormDisOperate.Properties.Resources.resources
    │       │           ├── FormDisOperate.csproj.FileListAbsolute.txt
    │       │           ├── FormDisOperate.csproj.GenerateResource.Cache
    │       │           ├── FormDisOperate.exe
    │       │           ├── FormDisOperate.pdb
    │       │           └── TempPE
    │       ├── FormDisOperate.sln
    │       └── FormDisOperate.suo
    └── 005 使用泛型去掉数组中的重复数字-例1
        └── RemoveSameNum
            ├── RemoveSameNum
            │   ├── Form1.Designer.cs
            │   ├── Form1.cs
            │   ├── Form1.resx
            │   ├── Program.cs
            │   ├── Properties
            │   │   ├── AssemblyInfo.cs
            │   │   ├── Resources.Designer.cs
            │   │   ├── Resources.resx
            │   │   ├── Settings.Designer.cs
            │   │   └── Settings.settings
            │   ├── RemoveSameNum.csproj
            │   ├── bin
            │   │   └── Debug
            │   │       ├── RemoveSameNum.exe
            │   │       ├── RemoveSameNum.pdb
            │   │       ├── RemoveSameNum.vshost.exe
            │   │       └── RemoveSameNum.vshost.exe.manifest
            │   └── obj
            │       └── Debug
            │           ├── Refactor
            │           ├── RemoveSameNum.Form1.resources
            │           ├── RemoveSameNum.Properties.Resources.resources
            │           ├── RemoveSameNum.csproj.FileListAbsolute.txt
            │           ├── RemoveSameNum.csproj.GenerateResource.Cache
            │           ├── RemoveSameNum.exe
            │           ├── RemoveSameNum.pdb
            │           └── TempPE
            ├── RemoveSameNum.sln
            └── RemoveSameNum.suo

209 directories, 563 files





标签: 新手 数组 教程 C#

实例下载地址

C#新手教程(四):面向对象编程技术(源代码)

不能下载?内容有错? 点击这里报错 + 投诉 + 提问

好例子网口号:伸出你的我的手 — 分享

网友评论

发表评论

(您的评论需要经过审核才能显示)

查看所有0条评论>>

小贴士

感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。

  • 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
  • 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
  • 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
  • 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。

关于好例子网

本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明

;
报警