
.Net
文章平均质量分 74
is2120
这个作者很懒,什么都没留下…
展开
-
error C3225: generic type argument for 'T' cannot be 'System::Collections::Generic::KeyValuePair ^',
//z 2012-6-19 14:38:56 PM IS2120@优快云.T637923912 I want to create a List of KeyValuePairs in a managed C++ project. Here is the syntax I'm usingListKeyValuePairString^, String^>^>^ thing;but原创 2012-06-19 14:40:37 · 1217 阅读 · 0 评论 -
System::Text::StringBuilder::AppendFormat' : no overloaded function takes 7 arguments
将c#代码转成 c++ 代码时,遇到如下错误error C2661:System::Text::StringBuilder::AppendFormat' : no overloaded function takes 4 argumentsSystem::Text::StringBuilder::AppendFormat' : no overloaded function takes 5原创 2012-06-25 18:23:09 · 1139 阅读 · 0 评论 -
.Net常识之 浅析as和is操作符
<!--span {font-family:'YaHei Consolas Hybrid'; font-size:10pt; color:#000000}.zide {color:#F5F5DC}.sc2 {color:#008000}.sc4 {color:#FF8000}.sc5 {font-weight:bold; color:#0000F原创 2012-07-16 14:20:54 · 1107 阅读 · 0 评论 -
Different ways how to escape an XML string in C# (zz)
Different ways how to escape an XML string in C#//z 2012-08-01 17:02:15 is2120@csdn.T297755689 [T22,L756,R3,V348]XML encoding is necessary if you have to save XML text in an XML document. If you d原创 2012-08-01 16:59:00 · 1382 阅读 · 0 评论 -
Visual Studio 2008 QFE (zz)
KB944899 //z 2012-09-05 14:04:45 IS2120@csdn.T2123831814[T5,L86,R3,V28]标题KB944899(//z 2012-09-05 14:04:45 IS2120@csdn.T2123831814[T5,L86,R3,V28])发布日期2008/1/14大小3.41 MB原创 2012-09-05 14:01:04 · 890 阅读 · 0 评论 -
C# helper to dump any object to a log (zz)
<!--span {font-family:'YaHei Consolas Hybrid'; font-size:10pt; color:#000000}.zide {color:#F5F5DC}.sc2 {color:#008000}.sc4 {color:#FF8000}.sc5 {font-weight:bold; color:#0000F原创 2012-08-27 11:03:14 · 1375 阅读 · 0 评论 -
c# Foreach last (zz)
c# Foreach last//z 2012-09-06 15:49:01 IS2120@优快云.T2414191273[T14,L128,R4,V138]If you just need to do something with the last element (as opposed to something different with the last element th原创 2012-09-06 15:45:29 · 808 阅读 · 0 评论 -
JGTM'2004 [MVP] 对MarshalByRefObject的讲解 (zz.is2120)
//z 2012-09-11 09:30:29 IS2120@csdn.T2872699816[T30,L404,R7,V203] Anyone can explain the major use of MarshalByRefObjectWhat's the purpose for MarshalByRefObject?1. Remoting; it means that bet原创 2012-09-11 09:29:30 · 684 阅读 · 0 评论 -
C#字符串格式化说明(String.Format) (zz.IS2120)
1 前言//z 2012-09-21 14:15:14 IS2120@优快云.BG57IV3.T305803877 [T12,L943,R11,V100] 如果你熟悉Microsoft Foundation Classes(MFC)的CString,Windows Template Library(WTL)的CString或者Standard Template Library(STL原创 2012-09-21 14:11:40 · 2694 阅读 · 0 评论 -
Microsoft C++ exception: EEResourceException(orig. IS2120@BG57IV3)
//z 2012-11-28 14:34:06 IS2120@BG57IV3.T3337916209.K[T34,L365,R14,V313]1. 遇到一个奇怪的问题:First-chance exception at 0x74d8c41f Microsoft C++ exception: EEResourceException at memory location 0x0028dc60.原创 2012-11-28 14:29:51 · 1743 阅读 · 0 评论 -
在使用vs2010调试时大量出现iso_whid,HR PROPAGATED 信息
//z 9/5/2011 2:39 PM@is2120@youkuaiyun.comframework4.0 iso_whid 错误在用visual studio 2010 调试时会向dbgview输出大量的如下信息:*** HR propagated: -2147024774[8092] *** Source File: d:\iso_whid\x86fre\base\iso原创 2011-09-05 14:38:44 · 8565 阅读 · 0 评论 -
c# windows form 生命周期 (Life cycle) 事件 顺序
c# windows form 生命周期 (Life cycle) 事件 顺序 窗口 初始化____________________________________________________________________________________________________________________微软官方的文档:form 打开:• Control.H原创 2012-05-16 14:38:18 · 7230 阅读 · 0 评论 -
Bug Report For .Net (zz.IS2120@BG57IV3)
<!--span {font-family:'YaHei Consolas Hybrid'; font-size:10pt; color:#FFFFFF}.zide {color:#000000}.sc2 {color:#9933CC}.sc4 {color:#FF8000}.sc5 {font-weight:bold; color:#FF660原创 2012-12-18 15:53:04 · 1104 阅读 · 0 评论 -
DevExpress 动态创建实例化类 (xpo)
使用xpo(devexpress)时动态创建一个持久化类。这样方便访问数据库。/*使用DevExpress 控件 xpoXPObject 持久化对象 数据库访问 表 XPObject*///z 2011-07-27 22:06:55@is2120.优快云 转载请注明出处class Program { static void Main(string[] a原创 2011-07-27 22:01:09 · 2933 阅读 · 1 评论 -
visual studio 设计器 不能实例化 抽象类的几种解决方案
The designer must create an instance of type '', but it can't because the type is declared as abstract问题产生的原因: This error occurred because the base class of the object being passed to the design原创 2011-11-28 13:03:50 · 2201 阅读 · 0 评论 -
查看.Net Framework版本的方法(zz)
Version NameVersion Number[1]Release DateMainstream Support RetiredExtended Support RetiredService Pack RetiredPDC 2000 (Tech Preview) Release2000.14.1812.102000-07-111.0 Bet原创 2012-09-05 16:34:13 · 1233 阅读 · 0 评论 -
Handling Invalid Characters in an XML String (zz.IS2120.BG57IV3)
Recipe 15.7. Handling Invalid Characters in an XML StringProblem//z 2012-11-15 17:45:37 IS2120@BG57IV3.T760357750 .K[T3,L107,R3,V27]You are creating an XML string. Before adding a tag containi原创 2012-11-15 17:41:22 · 1442 阅读 · 0 评论 -
A C# Reading List by Eric Lippert (ZZ)
//z 2012-5-18 10:29:00 AM IS2120@优快云essential .netCLRvia C# The C# Programming Language, 4th edition by Anders Hejlsberg, Mads Torgersen, Scott Wiltamuth and Peter GoldeEssential C# 4.0 b原创 2012-03-28 17:27:15 · 1159 阅读 · 0 评论 -
c# 注册表.代码示例.(迭代遍历注册表)[Demo]
//z 2012-5-3 16:51:44 PM IS2120@优快云 如果欲修改值,打开时如下:// RegistryKey skms = SoftwareKey.OpenSubKey(RegistryKeyName, true);using System;using System.Collections.Generic;using System.Linq;using System.原创 2012-05-03 09:04:27 · 1895 阅读 · 0 评论 -
string 最佳实践(C#版) (IS2120@优快云)
string 最佳实践(C#版)1. 总是初始化string1.1 其是一个reftypestring str; //z nullstring str = string.empty; //z string.empty 在整个app中只有一份实例1.2 不要使用””string str = “”; //z事实上每次使用都会产生一个新的object;低效。//z 201原创 2012-02-20 13:44:12 · 983 阅读 · 0 评论 -
[CSharp]数字格式化输出 zz
int a = 12345678; //格式为sring输出// Label1.Text = string.Format("asdfadsf{0}adsfasdf",a);// Label2.Text = "asdfadsf"+a.ToString()原创 2011-09-25 05:31:00 · 2798 阅读 · 0 评论 -
东软 C#编程规范 zz
第一章 概述 规范制定原则 1 方便代码的交流和维护。 2 不影响编码的效率,不与大众习惯冲突。 3 使代码更美观、阅读更方便。 4 使代码的逻辑更清晰、更易于理解。 术语定义 Pascal 大小写 将标识符的首字母和后面连原创 2011-09-25 05:33:03 · 1813 阅读 · 0 评论 -
using语句之-释放资源和异常处理 zz
using语句之-释放资源和异常处理 2009-05-23 14:04 有时,代码要求非托管资源,如文件句柄、COM 包装或 SQL 连接。在使用一个或多个此类资源完成了代码后,Using 块确保这些资源的释放。这样,其他代码就可以使用它们。托管资源由 .原创 2011-09-28 07:44:05 · 1331 阅读 · 0 评论 -
Warning Level
1. /warn (Specify Warning Level)/warn:optionwhere:optionThe minimum warning level you want displayed for the build. Val原创 2011-09-28 23:44:43 · 1192 阅读 · 0 评论 -
csc工具一般使用说明zz
csc工具一般使用说明。工具CSC.exe是.net用来编译.cs文件的命令工具。它的路径默认在framework安装路径下。如:C:\WINDOWS\Microsoft.NET\Framework\版本\csc.exe常用的情况如下:编译 File.cs 以产生 File.exe: csc File.cs 编译 File.cs 以产生 File.dll: csc /t原创 2011-10-20 12:33:59 · 3294 阅读 · 0 评论 -
.NET程序设计之四书五经
推荐书籍:《C#入门经典》《C#高级编程》《.NET框架程序设计(修订版)》(李建忠译版)《深入探 索.NET框架内部了解CLR如何创建运行时对象》《.NET本质论》ILDASMReflectorIlspy.NET程序设计之四书五经Microsoft®.NET 是 Microsoft XMLWeb services平台。XML转载 2011-07-04 19:55:47 · 898 阅读 · 0 评论 -
GAC TIPS zz
GAC TIPShttp://blog.youkuaiyun.com/is2120/article/details/7050768GAC是什么?全局程序集缓存 (GAC) 计算机范围内的代码缓存,它存储专门安装的程序集,这些程序集由计算机上的许多应用程序共享。在全局程序集缓存中部署的应用程序必须具有强名称2011-12-7 6:04 PM IS2120@优快云是的,GAC中的原创 2011-12-07 18:03:09 · 926 阅读 · 0 评论 -
C# Tips
1. 十六进制和十进制的相互转换//z 2011-12-28 5:37 PM is2120@csdnint decValue = 2120;将十进制转换为 十六进制string hexValue =decValue.ToString("X");将十六进制转回十进制int decAgain = int.Parse(hexValue,System.Globalizati原创 2011-12-28 17:38:25 · 577 阅读 · 0 评论 -
使用 string 的一些规则
使用 string 的一些规则//z 2012-2-7 16:50:57 PM IS2120@优快云· Use overloads that explicitly specify the stringcomparison rules for string operations. Typically, this involves calling amethod overl原创 2012-02-07 16:47:45 · 1242 阅读 · 0 评论 -
c# 枚举 enum 类型
c# 枚举 enum 类型 (IS2120@优快云)1. 最平常的方法public enum Suits{ Spades, Hearts, Clubs, Diamonds, NumSuits}public void PrintAllSuits(){ fore原创 2012-02-16 17:53:44 · 1143 阅读 · 0 评论 -
c# 条件编译 Conditional ("DEBUG")
c# 条件编译 Conditional ("DEBUG")简而言之:可以通过Conditional 指定函数和属性是否编译到最终产品中去。同时还应该看看 AttributeUsage ObsoleteC# Language SpecificationSystem.AttributeUsageAttribute (Section 17.4.1), which is u原创 2012-02-24 17:45:07 · 7143 阅读 · 0 评论 -
如何成为靠谱的DotNet/C#程序员 (sunxiunan)(zz)
如何成为靠谱的DotNet/C#程序员(SUNXIUNAN)//z 2012-3-1 10:26:43 AM IS2120@优快云1 确定目标微软系开发涉及面太广,所以你得先确定自己在哪方面有所专长。除了基础知识扎实以外,在asp.net/ siliverlight / WPF 必须有一定的侧重。这个侧重点选择可以是自身兴趣,但大多数是项目需要。2 选择教材我还是倾向原创 2012-03-01 10:24:23 · 950 阅读 · 0 评论 -
将输入字符串转化为合法的文件名称
将输入字符串转化为合法的文件名称using System;using System.Text;namespace ConvertFilenameToValid{ //z 2012-3-5 13:17:35 PM IS2120@优快云 class Program { static void PrintUsage ()原创 2012-03-05 13:17:01 · 1749 阅读 · 0 评论 -
VB.NET and C# Comparison
VB.NET and C# Comparison (vb.net 与 c# 对比)//z 2012-3-7 13:30:51 PM IS2120@优快云VB.NETProgram StructureC#Imports SystemNamespace Hello Class HelloWorld原创 2012-03-07 13:28:37 · 1018 阅读 · 0 评论 -
XML 中的特殊字符
XML中的特殊字符(个人用于记录,只是为解决一时的问题)1. Message "An error occurredwhile parsing EntityName. Line 1, position 527." string//z 2011-12-29 9:54 AM is2120@csdn事情的起源:在传入xml文件给XmlDocument原创 2011-12-29 09:54:10 · 3584 阅读 · 0 评论 -
Performance C#
C# PERFORMANCE 性能//z 2012-3-28 15:04:03 PM IS2120@优快云1. 最重要的是定位出 hot spot尽量优化哪些占用了大量时间的方法等,否则费了力气,效果不彰。2. class 一般不要有空的 dtor结构无法定义dtor,只有类可以每一个类只可以有一个dtordtor不能继承或是重载不可直接调用;只能由系统(原创 2012-03-28 15:19:46 · 886 阅读 · 0 评论 -
异常的开销
//z 2012-3-29 0:01:36 IS2120@优快云异常的开销:1. static cost:managed exceptions相对代价较低(与c++相比)。static cost所发生的地方:1.1.try/finally/catch/throw这些代码构件实际所在的位置;1.2. unmanaged code中一旦有了这些构件(使用异常),代码要做大量隐式的原创 2012-03-28 23:53:28 · 602 阅读 · 0 评论 -
ToolKit
//z 主要用于记录一些工具编译:ilspy 一个开放源代码的.NET程序集浏览器和反编译工具makefilesharp develop版本控制软件(client):git: Git Extensions,msysgit 以及 TortoiseGitcvs : cvs , wincvs TortoiseCVShg: mercurial TortoiseHg原创 2011-09-11 11:07:36 · 764 阅读 · 0 评论