CodeLinePragma.cs 912 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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.Runtime.InteropServices;
  10. namespace System.CodeDom
  11. {
  12. // <summary>
  13. // Use objects of this class to keep track of locations where
  14. // statements are defined
  15. // </summary>
  16. [Serializable]
  17. [ClassInterface(ClassInterfaceType.AutoDispatch)]
  18. [ComVisible(true)]
  19. public class CodeLinePragma
  20. {
  21. private string fileName;
  22. private int lineNumber;
  23. //
  24. // Constructors
  25. //
  26. public CodeLinePragma (string fileName, int lineNumber)
  27. {
  28. this.fileName = fileName;
  29. this.lineNumber = lineNumber;
  30. }
  31. //
  32. // Properties
  33. //
  34. public string FileName {
  35. get {
  36. return fileName;
  37. }
  38. set {
  39. fileName = value;
  40. }
  41. }
  42. public int LineNumber {
  43. get {
  44. return lineNumber;
  45. }
  46. set {
  47. lineNumber = value;
  48. }
  49. }
  50. }
  51. }