CodeLinePragma.cs 781 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. //
  2. // System.CodeDom CodeLinePragma Class implementation
  3. //
  4. // Author:
  5. // Miguel de Icaza ([email protected])
  6. //
  7. // (C) 2001 Ximian, Inc.
  8. //
  9. using System;
  10. namespace System.CodeDom {
  11. // <summary>
  12. // Use objects of this class to keep track of locations where
  13. // statements are defined
  14. // </summary>
  15. [Serializable]
  16. public class CodeLinePragma {
  17. string fileName;
  18. int lineNumber;
  19. public CodeLinePragma (string fileName, int lineNumber)
  20. {
  21. this.fileName = fileName;
  22. this.lineNumber = lineNumber;
  23. }
  24. //
  25. // Properties
  26. //
  27. public string FileName {
  28. get {
  29. return fileName;
  30. }
  31. set {
  32. fileName = value;
  33. }
  34. }
  35. public int LineNumber {
  36. get {
  37. return lineNumber;
  38. }
  39. set {
  40. lineNumber = value;
  41. }
  42. }
  43. }
  44. }