• 大小: 208KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-06-08
  • 语言: C#
  • 标签: CLR  Via  C#  源代码  

资源简介

《CLR via C#(第4版)》针对CLR和.NET Framework 4.5进行深入、全面的探讨,并结合实例介绍了如何利用它们进行设计、开发和调试。本资源是官网的配套源代码

资源截图

代码片段和文件信息

#if !DEBUG
#pragma warning disable 3002 3005
#endif
using System;

// Tell compiler to check for CLS compliance
[assembly: CLSCompliant(true)]

namespace SomeLibrary {
   // Warnings appear because the class is public
   public sealed class SomeLibraryType {

      // Warning: Return type of ‘SomeLibrary.SomeLibraryType.Abc()‘ 
      // is not CLS-compliant
      public UInt32 Abc() { return 0; }

      // Warning: Identifier ‘SomeLibrary.SomeLibraryType.abc()‘ 
      // differing only in case is not CLS-compliant
      public void abc() { }

      // No warning: Method is private
      private UInt32 ABC() { return 0; }
   }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件         661  2010-01-20 00:25  Ch01-1-SomeLibrary.cs
     文件        2384  2012-05-22 12:37  Ch01-1-SomeLibrary.csproj
     文件         776  2012-07-09 05:38  Ch01-2-TypeMembersToIL.cs
     文件        2395  2012-05-22 12:37  Ch01-2-TypeMembersToIL.csproj
     文件         111  2010-01-20 00:25  Ch02-1-SimpleProgram.cs
     文件        2481  2012-07-08 08:40  Ch02-1-SimpleProgram.csproj
     文件        1967  2010-01-20 00:25  Ch02-2-Minimum MSCorLib.cs
     文件        2319  2012-05-22 12:37  Ch02-2-Minimum MSCorLib.csproj
     文件        1071  2012-06-18 13:36  Ch02-3-AssemblyVersionInfo.cs
     文件        1186  2010-01-20 00:25  Ch02-3-BuildMultiFileLibrary.bat
     文件         171  2010-01-20 00:25  Ch02-3-FUT.cs
     文件         159  2010-01-20 00:25  Ch02-3-RUT.cs
     文件         173  2010-01-20 00:25  Ch02-4-AppUsingMultiFileLibrary.cs
     文件        2853  2012-07-09 05:27  Ch02-4-AppUsingMultiFileLibrary.csproj
     文件        2702  2012-06-18 13:48  Ch03-1-AssemInfo.cs
     文件        2557  2010-01-20 00:25  Ch04-1-Type Fundamentals.cs
     文件        2395  2012-07-08 08:40  Ch04-1-Type Fundamentals.csproj
     文件       17924  2012-06-11 09:14  Ch05-1-PrimitveReferenceValueTypes.cs
     文件        2857  2012-07-08 08:40  Ch05-1-PrimitveReferenceValueTypes.csproj
     文件        5439  2012-06-11 08:38  Ch06-1-TypeMembers.cs
     文件        2236  2012-05-22 12:38  Ch06-1-TypeMembers.csproj
     文件         224  2010-01-20 00:25  Ch07-1-LibraryDefiningConstant.cs
     文件        2146  2012-05-22 12:38  Ch07-1-LibraryDefiningConstant.csproj
     文件         187  2010-01-20 00:25  Ch07-2-AppUsingLibraryConstant.cs
     文件        2386  2012-07-09 05:27  Ch07-2-AppUsingLibraryConstant.csproj
     文件         184  2010-01-20 00:25  Ch07-3-LibraryDefiningReadOnlyField.cs
     文件        2161  2012-05-22 12:38  Ch07-3-LibraryDefiningReadOnlyField.csproj
     文件         175  2010-01-20 00:25  Ch07-4-AppUsingLibraryReadOnlyField.cs
     文件        2411  2012-07-09 05:27  Ch07-4-AppUsingLibraryReadOnlyField.csproj
     文件        1687  2012-07-09 05:33  Ch07-5-Fields.cs
     文件        2138  2012-05-22 12:39  Ch07-5-Fields.csproj
............此处省略86个文件信息

评论

共有 条评论