Merge pull request #819 from brendanzagaeski/patch-1
[mono.git] / mcs / class / Microsoft.Build / Microsoft.Build.Execution / ProjectTaskOutputItemInstance.cs
1 using System;
2 using Microsoft.Build.Construction;
3
4 namespace Microsoft.Build.Execution
5 {
6         public class ProjectTaskOutputItemInstance : ProjectTaskInstanceChild
7         {
8                 internal ProjectTaskOutputItemInstance (ProjectOutputElement xml)
9                 {
10                         condition = xml.Condition;
11                         ItemType = xml.ItemType;
12                         TaskParameter = xml.TaskParameter;
13                         #if NET_4_5
14                         condition_location = xml.ConditionLocation;
15                         location = xml.Location;
16                         task_parameter_location = xml.TaskParameterLocation;
17                         #endif
18                 }
19                 
20                 public string ItemType { get; private set; }
21                 public string TaskParameter { get; private set; }
22
23                 readonly string condition;
24                 public override string Condition {
25                         get { return condition; }
26                 }
27                 #if NET_4_5
28                 readonly ElementLocation condition_location, location, task_parameter_location;
29                 public ElementLocation ItemTypeLocation { get; private set; }
30                 public override ElementLocation ConditionLocation {
31                         get { return condition_location; }
32                 }
33                 public override ElementLocation Location {
34                         get { return location; }
35                 }
36                 public override ElementLocation TaskParameterLocation {
37                         get { return task_parameter_location; }
38                 }
39                 #endif
40         }
41 }
42