随笔分类 -  C#

摘要:https://stackoverflow.com/questions/25953887/how-to-use-unsafe-code-in-safe-contex I am not sure if you need unsafe code in that case (see answer of @ 阅读全文
posted @ 2019-07-14 11:36 ChuckLu 阅读(858) 评论(0) 推荐(0) 编辑
摘要:https://stackoverflow.com/questions/7672774/how-do-i-determine-the-windows-download-folder-path 如果你通过文件夹的location属性,移动了文件夹。 比如之前在%userProfile%\downloa 阅读全文
posted @ 2019-06-11 10:40 ChuckLu 阅读(2240) 评论(0) 推荐(0) 编辑
摘要:What size do you use for varchar(MAX) in your parameter declaration? In this case you use -1. See also MSDN docs: msdn.microsoft.com/en-us/library/bb3 阅读全文
posted @ 2019-05-06 17:43 ChuckLu 阅读(371) 评论(0) 推荐(0) 编辑
摘要:Why is lock(this) {…} bad? https://stackoverflow.com/questions/251391/why-is-lockthis-bad It is bad form to use this in lock statements because it is 阅读全文
posted @ 2018-12-05 10:13 ChuckLu 阅读(489) 评论(0) 推荐(0) 编辑
摘要:https://stackoverflow.com/questions/11263425/page-resolveurl-is-not-working-in-javascript The problem, as poncha pointed out, is that as far as ASP.NE 阅读全文
posted @ 2018-07-12 18:09 ChuckLu 阅读(327) 评论(0) 推荐(0) 编辑
摘要:https://docs.microsoft.com/en-us/dotnet/csharp/misc/cs0436 阅读全文
posted @ 2017-11-09 15:19 ChuckLu 阅读(732) 评论(0) 推荐(0) 编辑
摘要:https://stackoverflow.com/questions/24772053/found-conflicts-between-different-versions-of-the-same-dependent-assembly-that-c While the other response 阅读全文
posted @ 2017-10-27 16:19 ChuckLu 阅读(1174) 评论(0) 推荐(0) 编辑
摘要:https://stackoverflow.com/questions/2697247/how-to-determine-if-an-event-is-already-subscribed he event keyword was explicitly invented to prevent you 阅读全文
posted @ 2017-07-04 18:32 ChuckLu 阅读(298) 评论(0) 推荐(0) 编辑
摘要:https://msdn.microsoft.com/en-us/library/bb300779(v=vs.100).aspx var list1 = new List<int> {1, 2, 3, 4}; var list2 = new List<int> {2, 3, 5, 6}; var l 阅读全文
posted @ 2016-07-07 11:04 ChuckLu 阅读(3063) 评论(0) 推荐(0) 编辑
摘要:enum (C# Reference) The enum keyword is used to declare an enumeration, a distinct type that consists of a set of named constants called the enumerato 阅读全文
posted @ 2016-04-27 13:25 ChuckLu 阅读(369) 评论(0) 推荐(0) 编辑
摘要:http://stackoverflow.com/questions/1389821/array-copy-vs-buffer-blockcopy Since the parameters to Buffer.BlockCopy are byte-based rather than index-ba 阅读全文
posted @ 2016-04-25 16:44 ChuckLu 阅读(295) 评论(0) 推荐(0) 编辑
摘要:https://msdn.microsoft.com/en-us/library/bb397951.aspx Expression trees represent code in a tree-like data structure, where each node is an expression 阅读全文
posted @ 2016-03-29 11:03 ChuckLu 阅读(467) 评论(0) 推荐(0) 编辑
摘要:FileStream vs/differences StreamWriter? http://stackoverflow.com/questions/4963667/filestream-vs-differences-streamwriter What is different between Fi 阅读全文
posted @ 2016-03-02 10:41 ChuckLu 阅读(292) 评论(0) 推荐(0) 编辑
摘要:http://csharpindepth.com/Articles/General/Unicode.aspx Scope of this page This is a big topic. Don't expect this page to do more than scratch the surf 阅读全文
posted @ 2016-03-01 17:31 ChuckLu 阅读(295) 评论(0) 推荐(0) 编辑
摘要:How to: Synchronize Files by Using Managed Code FileSyncProvider Class File Synchronization Provider Sample Introduction to Microsoft Sync Framework F 阅读全文
posted @ 2016-02-16 17:24 ChuckLu 阅读(919) 评论(1) 推荐(0) 编辑
摘要:1.what is the main disadvantage of garbage collection?Typically, garbage collection has certain disadvantages, including consuming additional resource... 阅读全文
posted @ 2016-01-21 09:59 ChuckLu 阅读(399) 评论(0) 推荐(0) 编辑
摘要:The C# standard only listsdoubleandfloatas floating points available (those being the C# shorthand forSystem.DoubleandSystem.Single),but thedecimaltyp... 阅读全文
posted @ 2016-01-19 17:30 ChuckLu 阅读(182) 评论(0) 推荐(0) 编辑
摘要:http://stackoverflow.com/questions/793897/check-if-keyvaluepair-exists-with-linqs-firstordefault问题:I have a dictionary of typeDictionaryI want to retu... 阅读全文
posted @ 2015-11-27 18:08 ChuckLu 阅读(314) 评论(0) 推荐(0) 编辑
摘要:https://msdn.microsoft.com/en-us/library/dn961160.aspx int apples = 4; // Before C# 6.0 System.Console.WriteLine(String.Format("I have {0} apples", ap 阅读全文
posted @ 2015-11-17 10:49 ChuckLu 阅读(304) 评论(0) 推荐(0) 编辑
摘要:Is the ConcurrentDictionary thread-safe to the point that I can use it for a static cache? 问题: Basically, if I want to do the following: Does this let 阅读全文
posted @ 2015-11-11 16:14 ChuckLu 阅读(680) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示