Skip to main content

Home/ lzby's group/ Group items tagged c#

Rss Feed Group items tagged

boho .net

DotNetZip Library - Home - 0 views

  •  
    DotNetZip is a small, easy-to-use class library for manipulating .zip files. It can enable .NET applications written in VB.NET, C#, or any .NET language, to easily create, read, and update zip files. Zip Compression is easy with DotNetZip.
boho .net

InfoQ: C#争论:什么时候应该使用var? - 0 views

  • 那么,我的建议是只有当你不知道类型的时候,才使用var。这里是我不同的见解和用法。请看如下代码片断: var procs = from p in ServiceController.GetServices() where p.Status == ServiceControllerStatus.Running select p; procs.ToList().ForEach(p=> Console.WriteLine(p.ServiceName)); procs的类型无疑为IEnumerable<ServiceController>,然而这却与我无关。我首先关注的是procs是一个列表,列表中的每一项都具有一个属性ServiceName。潜在的类型对于编译器很重要,而那些不得不去阅读代码的人们却不是编译器,对吗?
1 - 4 of 4
Showing 20 items per page