资源简介


资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Text;

namespace SerialPortLib
{
    public class Code
    {
        private string _End = string.Empty;

        public Code() { }
        public Code(string end)
        {
            this._End = end;
        }
        /// 
        /// 编码
        /// 

        /// 
        /// 
        public string Encode(string data)
        {
            return data + this._End;
        }
        /// 
        /// 解码
        /// 

        /// 
        /// 
        public string Decode(string data)
        {
            int _EndIndex = data.LastIndexOf(this._End);
            _EndIndex = _EndIndex < 0 ? data.Length : 

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2013-07-04 10:02  thermometer\
     文件         133  2013-07-04 10:02  thermometer\.gitignore
     文件          14  2013-07-04 10:02  thermometer\README.md
     目录           0  2013-07-04 10:02  thermometer\SerialPort\
     文件        1355  2013-07-04 10:02  thermometer\SerialPort\Code.cs
     文件         814  2013-07-04 10:02  thermometer\SerialPort\ISerialPort.cs
     目录           0  2013-07-04 10:02  thermometer\SerialPort\Properties\
     文件        1322  2013-07-04 10:02  thermometer\SerialPort\Properties\AssemblyInfo.cs
     文件        3698  2013-07-04 10:02  thermometer\SerialPort\RS232.cs
     文件        1850  2013-07-04 10:02  thermometer\SerialPort\RS232Params.cs
     文件        2227  2013-07-04 10:02  thermometer\SerialPort\SerialPortLib.csproj
     文件        1057  2013-07-04 10:02  thermometer\SerialPort\ToolMethods.cs
     目录           0  2013-07-04 10:02  thermometer\SerialPort\bin\
     目录           0  2013-07-04 10:02  thermometer\SerialPort\bin\Debug\
     文件        9216  2013-07-04 10:02  thermometer\SerialPort\bin\Debug\SerialPort.dll
     文件       28160  2013-07-04 10:02  thermometer\SerialPort\bin\Debug\SerialPort.pdb
     目录           0  2013-07-04 10:02  thermometer\SerialPort\obj\
     目录           0  2013-07-04 10:02  thermometer\SerialPort\obj\Debug\
     目录           0  2013-07-04 10:02  thermometer\SerialPort\obj\Debug\Refactor\
     文件        5120  2013-07-04 10:02  thermometer\SerialPort\obj\Debug\Refactor\SerialPort.dll
     文件         391  2013-07-04 10:02  thermometer\SerialPort\obj\Debug\SerialPort.csproj.FileListAbsolute.txt
     文件        9216  2013-07-04 10:02  thermometer\SerialPort\obj\Debug\SerialPort.dll
     文件       28160  2013-07-04 10:02  thermometer\SerialPort\obj\Debug\SerialPort.pdb
     文件         391  2013-07-04 10:02  thermometer\SerialPort\obj\Debug\SerialPortLib.csproj.FileListAbsolute.txt
     文件        1877  2013-07-04 10:02  thermometer\Thermometer.sln
     文件       35328  2013-07-04 10:02  thermometer\Thermometer.suo
     目录           0  2013-07-04 10:02  thermometer\Thermometer\
     文件       10254  2013-07-04 10:02  thermometer\Thermometer\About.Designer.cs
     文件        3320  2013-07-04 10:02  thermometer\Thermometer\About.cs
     文件       49069  2013-07-04 10:02  thermometer\Thermometer\About.resx
     文件        3786  2013-07-04 10:02  thermometer\Thermometer\Form1.Designer.cs
............此处省略64个文件信息

评论

共有 条评论