1 //------------------------------------------------------------------------------
2 // <copyright file="CodeLinePragma.cs" company="Microsoft">
4 // <OWNER>Microsoft</OWNER>
5 // Copyright (c) Microsoft Corporation. All rights reserved.
7 //------------------------------------------------------------------------------
9 namespace System
.CodeDom
{
11 using System
.Diagnostics
;
13 using Microsoft
.Win32
;
14 using System
.Collections
;
15 using System
.Runtime
.InteropServices
;
19 /// Represents line number information for an external file.
23 ClassInterface(ClassInterfaceType
.AutoDispatch
),
27 public class CodeLinePragma
{
28 private string fileName
;
29 private int lineNumber
;
31 public CodeLinePragma() {
36 /// Initializes a new instance of <see cref='System.CodeDom.CodeLinePragma'/>.
39 public CodeLinePragma(string fileName
, int lineNumber
) {
41 LineNumber
= lineNumber
;
48 /// the associated file.
51 public string FileName
{
53 return (fileName
== null) ? string.Empty
: fileName
;
62 /// Gets or sets the line number of the file for
63 /// the current pragma.
66 public int LineNumber
{