diff options
Diffstat (limited to 'mcs/class/Microsoft.Build/Microsoft.Build.Evaluation/ResolvedImport.cs')
-rw-r--r-- | mcs/class/Microsoft.Build/Microsoft.Build.Evaluation/ResolvedImport.cs | 37 |
1 files changed, 24 insertions, 13 deletions
diff --git a/mcs/class/Microsoft.Build/Microsoft.Build.Evaluation/ResolvedImport.cs b/mcs/class/Microsoft.Build/Microsoft.Build.Evaluation/ResolvedImport.cs index 1e82c01a4c..8a5bed7437 100644 --- a/mcs/class/Microsoft.Build/Microsoft.Build.Evaluation/ResolvedImport.cs +++ b/mcs/class/Microsoft.Build/Microsoft.Build.Evaluation/ResolvedImport.cs @@ -26,24 +26,35 @@ // using Microsoft.Build.Construction; - using System; namespace Microsoft.Build.Evaluation { - [System.Runtime.InteropServices.StructLayout (System.Runtime.InteropServices.LayoutKind.Sequential)] - public struct ResolvedImport - { - private ProjectImportElement import; - private ProjectRootElement root; + [System.Runtime.InteropServices.StructLayout (System.Runtime.InteropServices.LayoutKind.Sequential)] + public struct ResolvedImport + { + internal ResolvedImport (ProjectImportElement import, ProjectRootElement root, bool isImported) + { + this.import = import; + this.root = root; + this.imported = isImported; + } + + readonly ProjectImportElement import; + readonly ProjectRootElement root; + readonly bool imported; - public ProjectImportElement ImportingElement { - get { return import; } - } + public ProjectImportElement ImportingElement { + get { return import; } + } - public ProjectRootElement ImportedProject { - get { return root; } - } - } + public ProjectRootElement ImportedProject { + get { return root; } + } + + public bool IsImported { + get { return imported; } + } + } } |