The Labs \ Source Viewer \ SSCLI \ System.CodeDom \ CodeChecksumPragma

  1. //------------------------------------------------------------------------------
  2. // <copyright file="CodeChecksumPragma.cs" company="Microsoft">
  3. //
  4. // Copyright (c) 2006 Microsoft Corporation. All rights reserved.
  5. //
  6. // The use and distribution terms for this software are contained in the file
  7. // named license.txt, which can be found in the root of this distribution.
  8. // By using this software in any fashion, you are agreeing to be bound by the
  9. // terms of this license.
  10. //
  11. // You must not remove this notice, or any other, from this software.
  12. //
  13. // </copyright>
  14. //------------------------------------------------------------------------------
  15. namespace System.CodeDom
  16. {
  17.    
  18.     using System.Diagnostics;
  19.     using System;
  20.     using Microsoft.Win32;
  21.     using System.Collections;
  22.     using System.Runtime.InteropServices;
  23.    
  24.     [ClassInterface(ClassInterfaceType.AutoDispatch), ComVisible(true), Serializable()]
  25.     public class CodeChecksumPragma : CodeDirective
  26.     {
  27.         private string fileName;
  28.         private byte[] checksumData;
  29.         private Guid checksumAlgorithmId;
  30.        
  31.         public CodeChecksumPragma()
  32.         {
  33.         }
  34.        
  35.         public CodeChecksumPragma(string fileName, Guid checksumAlgorithmId, byte[] checksumData)
  36.         {
  37.             this.fileName = fileName;
  38.             this.checksumAlgorithmId = checksumAlgorithmId;
  39.             this.checksumData = checksumData;
  40.         }
  41.        
  42.         public string FileName {
  43.             get { return (fileName == null) ? string.Empty : fileName; }
  44.             set { fileName = value; }
  45.         }
  46.        
  47.         public Guid ChecksumAlgorithmId {
  48.             get { return checksumAlgorithmId; }
  49.             set { checksumAlgorithmId = value; }
  50.         }
  51.        
  52.         public byte[] ChecksumData {
  53.             get { return checksumData; }
  54.             set { checksumData = value; }
  55.         }
  56.     }
  57. }

Developer Fusion