2016年7月3日
摘要:
var catalog = new AggregateCatalog(); catalog.Catalogs.Add(new DirectoryCatalog(".")); var container = new CompositionContainer(catalog); var catalog
阅读全文
posted @ 2016-07-03 20:49
武胜-阿伟
阅读(231)
推荐(0)
摘要:
string zipfile = "c:\\a.zip"; //方法1 FileStream fs = new FileStream(zipfile, FileMode.Open); //把文件读取到字节数组 byte[] zipdata = new byte[fs.Length]; fs.Read
阅读全文
posted @ 2016-07-03 20:09
武胜-阿伟
阅读(1325)
推荐(0)
2016年5月27日
摘要:
using System; using System.Collections.Generic; using System.Linq; using System.Security.Cryptography; using System.Text; using System.Web; using NLog; namespace services.Resources { public clas...
阅读全文
posted @ 2016-05-27 15:11
武胜-阿伟
阅读(382)
推荐(0)
2016年5月15日
摘要:
CompositeLink complink = new CompositeLink(new PrintingSystem()); PrintableComponentLink link = new PrintableComponentLink(); link.Component = gridControl1; compli...
阅读全文
posted @ 2016-05-15 09:03
武胜-阿伟
阅读(818)
推荐(0)
2016年5月2日
摘要:
Getting started with SciPy for .NET 1.) IronPython Download and install IronPython 2.7, this will require .NET v4.0. 2.) Modify PATH Add the install l
阅读全文
posted @ 2016-05-02 19:34
武胜-阿伟
阅读(1118)
推荐(0)
2016年4月30日
摘要:
C# DLL源码 需要在IronPython脚本中调用HashCalc函数,Python脚本如下: 详细说明: 1. clr.AddReferenceToFile("SimpleHash.dll") 加载DLL文件 2. from Common import * 导入命名空间 3. 由于C#方法Ha
阅读全文
posted @ 2016-04-30 21:35
武胜-阿伟
阅读(5022)
推荐(0)
摘要:
C#中添加对python文件或者对python包的引用时出现"no module .."的问题时的解决办法。 对hello.py 做一些简单的修改 添加 import syssys.path.append(<DIR>) 因为我的hashlib在该目录"D:\IronPython2.7\Lib"下,<
阅读全文
posted @ 2016-04-30 10:03
武胜-阿伟
阅读(3537)
推荐(0)
摘要:
自定义控件分三类:1.复合控件:基本控件组合而成。继承自UserControl2.扩展控件:继承基本控件,扩展一些属性与事件。比如继承Button3.自定义控件:直接继承自Control
阅读全文
posted @ 2016-04-30 08:32
武胜-阿伟
阅读(202)
推荐(0)
2016年3月12日
摘要:
https://dev.windows.com/en-us/microsoft-edge/tools/vms/windows/
阅读全文
posted @ 2016-03-12 22:20
武胜-阿伟
阅读(4062)
推荐(1)
2016年3月6日
摘要:
AutoResetEvent和ManualResetEvent用于多线程之间代码执行顺序的控制,它们继承自WaitHandle,API相同,但在使用中还是有区别的。 每次使用时虽然理解了,但由于没有去深入思考记忆,过几天又忘记了。到下次需要使用的时候又要重新去理解这2个类。 今天再次遇到他们,写下这
阅读全文
posted @ 2016-03-06 12:12
武胜-阿伟
阅读(384)
推荐(0)