实例介绍
【实例简介】C#通用类库
添加INIHelper模块,用于操作INI文件(读取和写入);添加LogHelper模块,用于记录软件运行时的log信息;添加Notifier模块,用于显示软件运行信息,是对LogHelper的简单封装;等等
【实例截图】
【核心代码】
.
├── C#通用类库_CommonModules-master.zip
└── CommonModules-master
├── CommonModules
│ ├── AppConfigManager
│ │ └── AppConfigManager.cs
│ ├── CommonModules.csproj
│ ├── Configer
│ │ ├── ConfigHelper.cs
│ │ ├── ConfigItem.cs
│ │ ├── ConfigItemManager.cs
│ │ └── CustomConfigurationBaseSection.cs
│ ├── ControlSafeOPeration
│ │ └── CtrlSafeOpreation.cs
│ ├── INIFileHelper
│ │ └── INIHelper.cs
│ ├── LogHelper
│ │ ├── LogHelper.cs
│ │ └── log4net.config
│ ├── Notifier
│ │ ├── INotifyBoard.cs
│ │ ├── NotifyHelper.cs
│ │ ├── NotifyItem.cs
│ │ ├── NotifyListBox.cs
│ │ ├── NotifyListView.cs
│ │ ├── NotifyManager.cs
│ │ ├── NotifyRichTextBox.cs
│ │ └── NotifyTextBox.cs
│ ├── Properties
│ │ ├── AssemblyInfo.cs
│ │ ├── Resources.Designer.cs
│ │ └── Resources.resx
│ ├── Resources
│ │ ├── All.png
│ │ ├── Debug.png
│ │ ├── Display.png
│ │ ├── Error.png
│ │ ├── Fatal.png
│ │ ├── Info.png
│ │ └── Warning.png
│ ├── SaveImage
│ │ ├── ISaveImage.cs
│ │ ├── SaveImageComponent.cs
│ │ ├── SaveImageEditor.Designer.cs
│ │ ├── SaveImageEditor.cs
│ │ ├── SaveImageEditor.resx
│ │ └── SaveImageType.cs
│ ├── SerialPort
│ │ ├── CSerialPort.cs
│ │ ├── ReceiveMsgEventArgs.cs
│ │ ├── SerialPortUI.cs
│ │ ├── SerialPortUI.designer.cs
│ │ └── SerialPortUI.resx
│ ├── SerializerHelper
│ │ └── SerializerHelper.cs
│ ├── TCP
│ │ ├── AsyncTCPClient.cs
│ │ ├── AsyncTCPServer.cs
│ │ ├── TCPClientDisConnectedEventArgs.cs
│ │ ├── TCPClientExceptionOccurredEventArgs.cs
│ │ ├── TCPClientState.cs
│ │ ├── TCPDatagramReceiveEventArgs.cs
│ │ ├── TCPServerConnectedEventArgs.cs
│ │ ├── TCPServerDisconnectedEventArgs.cs
│ │ ├── TcpClientConnectedEventArgs.cs
│ │ └── TcpServerExceptionOccurredEventArgs.cs
│ ├── XML
│ │ └── XmlHelper.cs
│ ├── bin
│ │ ├── Debug
│ │ │ ├── CommonModules.dll
│ │ │ ├── CommonModules.pdb
│ │ │ ├── CsvHelper.dll
│ │ │ ├── CsvHelper.xml
│ │ │ ├── System.Runtime.CompilerServices.Unsafe.dll
│ │ │ ├── System.Runtime.CompilerServices.Unsafe.xml
│ │ │ ├── System.Threading.Tasks.Extensions.dll
│ │ │ ├── System.Threading.Tasks.Extensions.xml
│ │ │ ├── System.ValueTuple.dll
│ │ │ ├── System.ValueTuple.xml
│ │ │ ├── log4net.config
│ │ │ ├── log4net.dll
│ │ │ └── log4net.xml
│ │ └── Release
│ │ ├── CommonModules.dll
│ │ ├── CommonModules.pdb
│ │ ├── log4net.config
│ │ ├── log4net.dll
│ │ └── log4net.xml
│ ├── obj
│ │ ├── Debug
│ │ │ ├── CommonModules.csproj.CopyComplete
│ │ │ ├── CommonModules.csproj.CoreCompileInputs.cache
│ │ │ ├── CommonModules.csproj.FileListAbsolute.txt
│ │ │ ├── CommonModules.csprojAssemblyReference.cache
│ │ │ ├── CommonModules.dll
│ │ │ ├── CommonModules.pdb
│ │ │ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ │ │ ├── TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
│ │ │ ├── TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
│ │ │ └── TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
│ │ └── Release
│ │ ├── CommonModules.Properties.Resources.resources
│ │ ├── CommonModules.SaveImage.SaveImageEditor.resources
│ │ ├── CommonModules.SerialPort.SerialPortUI.resources
│ │ ├── CommonModules.csproj.CopyComplete
│ │ ├── CommonModules.csproj.CoreCompileInputs.cache
│ │ ├── CommonModules.csproj.FileListAbsolute.txt
│ │ ├── CommonModules.csproj.GenerateResource.cache
│ │ ├── CommonModules.csprojAssemblyReference.cache
│ │ ├── CommonModules.dll
│ │ ├── CommonModules.pdb
│ │ ├── DesignTimeResolveAssemblyReferences.cache
│ │ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ │ ├── TempPE
│ │ │ └── Properties.Resources.Designer.cs.dll
│ │ ├── TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
│ │ ├── TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
│ │ └── TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
│ └── packages.config
├── CommonModules.sln
├── CommonModules.v11.suo
├── ReadMe.md
└── packages
├── Microsoft.CSharp.4.5.0
│ ├── LICENSE.TXT
│ ├── Microsoft.CSharp.4.5.0.nupkg
│ ├── THIRD-PARTY-NOTICES.TXT
│ ├── lib
│ │ ├── MonoAndroid10
│ │ │ └── _._
│ │ ├── MonoTouch10
│ │ │ └── _._
│ │ ├── net45
│ │ │ └── _._
│ │ ├── netcore50
│ │ │ └── Microsoft.CSharp.dll
│ │ ├── netcoreapp2.0
│ │ │ └── _._
│ │ ├── netstandard1.3
│ │ │ └── Microsoft.CSharp.dll
│ │ ├── netstandard2.0
│ │ │ └── Microsoft.CSharp.dll
│ │ ├── portable-net45 win8 wp8 wpa81
│ │ │ └── _._
│ │ ├── uap10.0.16299
│ │ │ └── _._
│ │ ├── win8
│ │ │ └── _._
│ │ ├── wp80
│ │ │ └── _._
│ │ ├── wpa81
│ │ │ └── _._
│ │ ├── xamarinios10
│ │ │ └── _._
│ │ ├── xamarinmac20
│ │ │ └── _._
│ │ ├── xamarintvos10
│ │ │ └── _._
│ │ └── xamarinwatchos10
│ │ └── _._
│ ├── ref
│ │ ├── MonoAndroid10
│ │ │ └── _._
│ │ ├── MonoTouch10
│ │ │ └── _._
│ │ ├── net45
│ │ │ └── _._
│ │ ├── netcore50
│ │ │ ├── Microsoft.CSharp.dll
│ │ │ ├── Microsoft.CSharp.xml
│ │ │ ├── de
│ │ │ │ └── Microsoft.CSharp.xml
│ │ │ ├── es
│ │ │ │ └── Microsoft.CSharp.xml
│ │ │ ├── fr
│ │ │ │ └── Microsoft.CSharp.xml
│ │ │ ├── it
│ │ │ │ └── Microsoft.CSharp.xml
│ │ │ ├── ja
│ │ │ │ └── Microsoft.CSharp.xml
│ │ │ ├── ko
│ │ │ │ └── Microsoft.CSharp.xml
│ │ │ ├── ru
│ │ │ │ └── Microsoft.CSharp.xml
│ │ │ ├── zh-hans
│ │ │ │ └── Microsoft.CSharp.xml
│ │ │ └── zh-hant
│ │ │ └── Microsoft.CSharp.xml
│ │ ├── netcoreapp2.0
│ │ │ └── _._
│ │ ├── netstandard1.0
│ │ │ ├── Microsoft.CSharp.dll
│ │ │ ├── Microsoft.CSharp.xml
│ │ │ ├── de
│ │ │ │ └── Microsoft.CSharp.xml
│ │ │ ├── es
│ │ │ │ └── Microsoft.CSharp.xml
│ │ │ ├── fr
│ │ │ │ └── Microsoft.CSharp.xml
│ │ │ ├── it
│ │ │ │ └── Microsoft.CSharp.xml
│ │ │ ├── ja
│ │ │ │ └── Microsoft.CSharp.xml
│ │ │ ├── ko
│ │ │ │ └── Microsoft.CSharp.xml
│ │ │ ├── ru
│ │ │ │ └── Microsoft.CSharp.xml
│ │ │ ├── zh-hans
│ │ │ │ └── Microsoft.CSharp.xml
│ │ │ └── zh-hant
│ │ │ └── Microsoft.CSharp.xml
│ │ ├── netstandard2.0
│ │ │ ├── Microsoft.CSharp.dll
│ │ │ └── Microsoft.CSharp.xml
│ │ ├── portable-net45 win8 wp8 wpa81
│ │ │ └── _._
│ │ ├── uap10.0.16299
│ │ │ └── _._
│ │ ├── win8
│ │ │ └── _._
│ │ ├── wp80
│ │ │ └── _._
│ │ ├── wpa81
│ │ │ └── _._
│ │ ├── xamarinios10
│ │ │ └── _._
│ │ ├── xamarinmac20
│ │ │ └── _._
│ │ ├── xamarintvos10
│ │ │ └── _._
│ │ └── xamarinwatchos10
│ │ └── _._
│ ├── useSharedDesignerContext.txt
│ └── version.txt
├── System.Runtime.CompilerServices.Unsafe.4.5.2
│ ├── LICENSE.TXT
│ ├── System.Runtime.CompilerServices.Unsafe.4.5.2.nupkg
│ ├── THIRD-PARTY-NOTICES.TXT
│ ├── lib
│ │ ├── netcoreapp2.0
│ │ │ ├── System.Runtime.CompilerServices.Unsafe.dll
│ │ │ └── System.Runtime.CompilerServices.Unsafe.xml
│ │ ├── netstandard1.0
│ │ │ ├── System.Runtime.CompilerServices.Unsafe.dll
│ │ │ └── System.Runtime.CompilerServices.Unsafe.xml
│ │ └── netstandard2.0
│ │ ├── System.Runtime.CompilerServices.Unsafe.dll
│ │ └── System.Runtime.CompilerServices.Unsafe.xml
│ ├── ref
│ │ ├── netstandard1.0
│ │ │ ├── System.Runtime.CompilerServices.Unsafe.dll
│ │ │ └── System.Runtime.CompilerServices.Unsafe.xml
│ │ └── netstandard2.0
│ │ ├── System.Runtime.CompilerServices.Unsafe.dll
│ │ └── System.Runtime.CompilerServices.Unsafe.xml
│ ├── useSharedDesignerContext.txt
│ └── version.txt
├── System.Threading.Tasks.Extensions.4.5.3
│ ├── LICENSE.TXT
│ ├── System.Threading.Tasks.Extensions.4.5.3.nupkg
│ ├── THIRD-PARTY-NOTICES.TXT
│ ├── lib
│ │ ├── MonoAndroid10
│ │ │ └── _._
│ │ ├── MonoTouch10
│ │ │ └── _._
│ │ ├── netcoreapp2.1
│ │ │ └── _._
│ │ ├── netstandard1.0
│ │ │ ├── System.Threading.Tasks.Extensions.dll
│ │ │ └── System.Threading.Tasks.Extensions.xml
│ │ ├── netstandard2.0
│ │ │ ├── System.Threading.Tasks.Extensions.dll
│ │ │ └── System.Threading.Tasks.Extensions.xml
│ │ ├── portable-net45 win8 wp8 wpa81
│ │ │ ├── System.Threading.Tasks.Extensions.dll
│ │ │ └── System.Threading.Tasks.Extensions.xml
│ │ ├── xamarinios10
│ │ │ └── _._
│ │ ├── xamarinmac20
│ │ │ └── _._
│ │ ├── xamarintvos10
│ │ │ └── _._
│ │ └── xamarinwatchos10
│ │ └── _._
│ ├── ref
│ │ ├── MonoAndroid10
│ │ │ └── _._
│ │ ├── MonoTouch10
│ │ │ └── _._
│ │ ├── netcoreapp2.1
│ │ │ └── _._
│ │ ├── xamarinios10
│ │ │ └── _._
│ │ ├── xamarinmac20
│ │ │ └── _._
│ │ ├── xamarintvos10
│ │ │ └── _._
│ │ └── xamarinwatchos10
│ │ └── _._
│ ├── useSharedDesignerContext.txt
│ └── version.txt
├── System.ValueTuple.4.4.0
│ ├── LICENSE.TXT
│ ├── System.ValueTuple.4.4.0.nupkg
│ ├── THIRD-PARTY-NOTICES.TXT
│ ├── lib
│ │ ├── MonoAndroid10
│ │ │ └── _._
│ │ ├── MonoTouch10
│ │ │ └── _._
│ │ ├── net461
│ │ │ ├── System.ValueTuple.dll
│ │ │ └── System.ValueTuple.xml
│ │ ├── net47
│ │ │ ├── System.ValueTuple.dll
│ │ │ └── System.ValueTuple.xml
│ │ ├── netcoreapp2.0
│ │ │ └── _._
│ │ ├── netstandard1.0
│ │ │ ├── System.ValueTuple.dll
│ │ │ └── System.ValueTuple.xml
│ │ ├── netstandard2.0
│ │ │ └── _._
│ │ ├── portable-net40 sl4 win8 wp8
│ │ │ ├── System.ValueTuple.dll
│ │ │ └── System.ValueTuple.xml
│ │ ├── xamarinios10
│ │ │ └── _._
│ │ ├── xamarinmac20
│ │ │ └── _._
│ │ ├── xamarintvos10
│ │ │ └── _._
│ │ └── xamarinwatchos10
│ │ └── _._
│ ├── ref
│ │ ├── MonoAndroid10
│ │ │ └── _._
│ │ ├── MonoTouch10
│ │ │ └── _._
│ │ ├── net461
│ │ │ ├── System.ValueTuple.dll
│ │ │ └── System.ValueTuple.xml
│ │ ├── net47
│ │ │ ├── System.ValueTuple.dll
│ │ │ └── System.ValueTuple.xml
│ │ ├── netcoreapp2.0
│ │ │ └── _._
│ │ ├── netstandard2.0
│ │ │ └── _._
│ │ ├── portable-net40 sl4 win8 wp8
│ │ │ ├── System.ValueTuple.dll
│ │ │ └── System.ValueTuple.xml
│ │ ├── xamarinios10
│ │ │ └── _._
│ │ ├── xamarinmac20
│ │ │ └── _._
│ │ ├── xamarintvos10
│ │ │ └── _._
│ │ └── xamarinwatchos10
│ │ └── _._
│ ├── useSharedDesignerContext.txt
│ └── version.txt
└── log4net.2.0.8
├── lib
│ ├── net20-full
│ │ ├── log4net.dll
│ │ └── log4net.xml
│ ├── net35-client
│ │ ├── log4net.dll
│ │ └── log4net.xml
│ ├── net35-full
│ │ ├── log4net.dll
│ │ └── log4net.xml
│ ├── net40-client
│ │ ├── log4net.dll
│ │ └── log4net.xml
│ ├── net40-full
│ │ ├── log4net.dll
│ │ └── log4net.xml
│ ├── net45-full
│ │ ├── log4net.dll
│ │ └── log4net.xml
│ └── netstandard1.3
│ └── log4net.dll
└── log4net.2.0.8.nupkg
139 directories, 247 files
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明
网友评论
我要评论