• Csharp 连接NHibernate下需要注意的几个点

    时间:2022-06-30 06:56:11

    背景:在学习PhotonServer时,我看的教程中使用了NHibernate框架来连接管理Mysql数据库.我在以前只使用过java中的Springboot,感觉两者有些相似之处。我写好了之后,开始尝试连接数据库,就报了一大堆错?我仔细检查了自己的代码和教程的代码,并没有发现什么错误之处,只能自己...

  • C# 如何添加自定义键盘处理事件 如何配置app.config ? | csharp key press event t

    时间:2022-06-29 06:18:49

    本文首发于个人博客https://kezunlin.me/post/9f24ebb5/,欢迎阅读最新内容!csharpkeypresseventtutorialandapp.configGuideMainFormprotectedoverrideboolProcessCmdKey(refMessag...

  • c++/cli mixed codes for standard c++ and csharp

    时间:2022-06-28 05:26:44

    混合DotNet与Win32API来实现的Hidlibrary,c/c++可直接使用,c#可直接使用异步IO,拔插事件订阅,数据读取事件订阅 工程目录结构HidEvent.h1#pragmaonce23typedefvoid(*HidEvent)();4typedefvoid(__cdecl*Hid...

  • Csharp volatile 关键字

    时间:2022-06-21 05:15:35

    volatile关键字指示一个字段可以由多个同时执行的线程修改。声明为volatile的字段不受编译器优化(假定由单个线程访问)的限制。这样可以确保该字段在任何时间呈现的都是最新的值。volatile修饰符通常用于由多个线程访问但不使用lock语句对访问进行序列化的字段。volatile关键字可应用...

  • csharp: NHibernate and Entity Framework (EF) (object-relational mapper)

    时间:2022-05-24 02:59:25

    代码生成器:1. http://www.codesmithtools.com/2.https://sourceforge.net/projects/mygeneration/3. http://nmg.codeplex.com/ NHibernateMappingGeneratorhttps://g...

  • csharp: Export or Import excel using NPOI

    时间:2022-05-21 17:21:38

    excel2003:usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Linq;usingSystem.Tex...

  • csharp:Google TTS API text to speech

    时间:2022-05-08 06:02:10

    usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Linq;usingSystem.Text;usingSys...

  • csharp: json to csharp

    时间:2022-04-09 01:39:55

    http://json2csharp.com/ http://jsonclassgenerator.codeplex.com/ http://jsonutils.com/JSON生成类文件 https://github.com/bladefist/JsonUtils///http://jsonlin...

  • WindowsCE project missing Microsoft.CompactFramework.CSharp.targets in Visual Studio 2008

    时间:2022-03-11 15:15:07

    00x0前言之前在Windows7系统中开发的WindowsCE项目,最近换成Windows10系统,需要将项目进行修改,打开项目后提示如下错误:无法读取项目文件“App.csproj”。...\App.csproj(209,11):Theimportedproject"C:\Windows\Mic...

  • csharp_ToJson的正确写法

    时间:2022-03-05 07:25:42

    网上搜的,但有问题,已经改好。。。现在这个是正确的publicstaticstringToJson(DataTabledt,stringjsonName)       {           StringBuilderJson=newStringBuilder();           if(str...

  • Advanced CSharp Messenger

    时间:2022-03-01 00:35:00

    http://wiki.unity3d.com/index.php?title=Advanced_CSharp_MessengerAuthor:IlyaSuzdalnitskiContents[hide] 1 Description2 Foreword2.1 CausebehindtheMissin...

  • 温故知新,CSharp遇见异步编程(Async/Await),聊聊异步编程最佳做法

    时间:2022-02-02 04:00:06

    什么是异步编程(Async/Await)Async/Await本质上是通过编译器实现的语法糖,它让我们能够轻松的写出简洁、易懂、易维护的异步代码。Async/Await是C#5引入的关键字,用以提高用户界面响应能力和对Web资源的访问能力,同时它使异步代码的编写变得更加容易。如果需要I/O绑定(例如...

  • CSharp设计模式读书笔记(22):策略模式(学习难度:★☆☆☆☆,使用频率:★★★★☆)

    时间:2022-01-21 19:23:36

    策略模式(StrategyPattern):定义一系列算法类,将每一个算法封装起来,并让它们可以相互替换,策略模式让算法独立于使用它的客户而变化,也称为政策模式(Policy)。模式角色与结构:示例代码:usingSystem;usingSystem.Collections.Generic;usin...

  • 使用C#开发ActiveX控件(新) 转 http://www.cnblogs.com/yilin/p/csharp-activex.html

    时间:2022-01-10 20:27:40

    前言ActiveX控件以前也叫做OLE控件,它是微软IE支持的一种软件组件或对象,可以将其插入到Web页面中,实现在浏览器端执行动态程序功能,以增强浏览器端的动态处理能力。通常ActiveX控件都是用C++或VB语言开发,本文介绍另一种方式,在.NETFramework平台上,使用C#语言开发Act...

  • csharp:VerifyCode in winform or webform

    时间:2021-12-20 16:28:55

    winform:usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Text;usingSystem.Windo...

  • Csharp 基础笔记知识点整理

    时间:2021-11-19 12:38:25

    /**@version:V.1.0.0.1*@Author:fenggang*@Date:2019-06-1621:26:59*@LastEditors:fenggang*@LastEditTime:2019-06-1801:31:12*@Descripttion:csharp基础笔记*/ 基础知识...

  • CSharp 相关知识点小结

    时间:2021-11-05 01:13:44

    1.JS获取iframe下面的内容document.getElementById('IFRAME1').contentDocument;2.dialog弹出层,定位:postion:'bottom',['right','bottom'],['left','bottom'].3.IIS上部署WCF; ...

  • Buttonton){} 原语句: [csharp] ///summary第一行说明 ///para第二行说明/para

    时间:2021-10-28 08:59:15

    为函数要领注释说明要用到xml语句 <summary>段落说明</summary>、<para>新段示例说明</para>、<para></para>空行要插手全角空格下面的注释会粉碎原有标注布局:[csharp]/// <...

  • csharp 字符串比较,不区分大小写

    时间:2021-10-28 04:09:32

    最近在看一些MSDN上的文章,看到一篇我"常犯"的錯,就是文字字串如果要不分大小寫去比對,我都是先ToLower()或是ToUpper()之後再去比,但看完這篇後,才知道我錯了.這個例子是在下面這個的情況:stringa="AAA";stringb="aaa";boolc=a.ToUpper()==...

  • csharp: Domain-Driven Design(领域驱动设计)

    时间:2021-10-11 22:29:57

    http://dddsample.sourceforge.net/https://github.com/citerus/dddsample-corehttp://dddsamplenet.codeplex.com/SourceControl/latesthttps://github.com/Vaug...