摘要:
We use the AES and RSA as the crypt algorithm.The sample is : public static EncryptedExportKeyList EncryptExportFile(string productKeysXml) { X509Certificate2 certificate = GetChinasoftCerticate(); byte[] productKeysData = Constants.DefaultEncoding.GetBytes(produc... 阅读全文
随笔档案-2012年02月
The Simple BackgroundWorker Sample
2012-02-20 10:41 by barbarossia, 258 阅读, 收藏,
摘要:
The code is:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Windows;using System.Windows.Controls;using System.Windows.Data;using System.Windows.Documents;using System.Windows.Input;using System.Windows.Media;using System.Windows.Media.Imaging;using Sys 阅读全文
The Async Work In WPF
2012-02-20 10:40 by barbarossia, 207 阅读, 收藏,
摘要:
The implement of async work in wpf.The source code: /// <summary> /// Executes the work in background to avoid hangs /// </summary> /// <param name="work"></param> protected void WorkInBackground(DoWorkEventHandler work, RunWorkerCompletedEventHandler onCompleted =. 阅读全文
How To Binding the DataContext Property To DataGrid
2012-02-20 10:40 by barbarossia, 346 阅读, 收藏,
摘要:
When we use the NVVM design mode in wpf develop. We also binding some property to datagrid as well. For example we can define datagrid to binding a list in such place. <DataGrid x:Uid="dgByKeys" ItemsSource="{Binding Keys}" ... 阅读全文
How many models of Asyncronous development in .NET?
2012-02-20 10:39 by barbarossia, 174 阅读, 收藏,
摘要:
There's at least 4, then - a regular callback (non-APM, non-EAP) is also not uncommonAPM - (BeginXXX EndXXX) Which you are using here, when the long running task completes,it calls back into your code in the EndXXX method EAP - Event based. In this model, when the long running task completes, an 阅读全文
How to release an unmanaged library loaded into managed .NET code
2012-02-20 10:39 by barbarossia, 179 阅读, 收藏,
摘要:
http://www.codeproject.com/Articles/258270/How-to-release-non-managed-library-loaded-into-manhttp://blogs.msdn.com/b/robgruen/archive/2004/11/12/256199.aspx 阅读全文
C# Language Features, From C# 2.0 to 4.0
2012-02-10 10:46 by barbarossia, 182 阅读, 收藏,
摘要:
http://www.codeproject.com/Articles/327916/C-Language-Features-From-C-2-0-to-4-0 阅读全文
Generic Repository Pattern - Entity Framework, ASP.NET MVC and Unit Testing Triangle
2012-02-10 10:34 by barbarossia, 269 阅读, 收藏,
摘要:
This is good post for entity framework. The url is:http://www.tugberkugurlu.com/archive/generic-repository-pattern-entity-framework-asp-net-mvc-and-unit-testing-triangle 阅读全文
XSLT 2.0 in .NET
2012-02-10 10:34 by barbarossia, 216 阅读, 收藏,
摘要:
http://www.codeproject.com/Articles/304467/XSLT-2-0-in-NET 阅读全文
浙公网安备 33010602011771号