Merge pull request #1046 from sethjackson/null-gc
[mono.git] / mcs / class / Microsoft.Build / Microsoft.Build.Execution / ProjectTaskOutputPropertyInstance.cs
1 using System;
2 using Microsoft.Build.Construction;
3
4 namespace Microsoft.Build.Execution
5 {
6         public class ProjectTaskOutputPropertyInstance : ProjectTaskInstanceChild
7         {
8                 internal ProjectTaskOutputPropertyInstance (ProjectOutputElement xml)
9                 {
10                         condition = xml.Condition;
11                         PropertyName = xml.PropertyName;
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 PropertyName { 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                 
28                 #if NET_4_5
29                 readonly ElementLocation condition_location, location, task_parameter_location;
30                 public ElementLocation PropertyNameLocation { get; private set; }
31                 public override ElementLocation ConditionLocation {
32                         get { return condition_location; }
33                 }               
34                 public override ElementLocation Location {
35                         get { return location; }
36                 }
37                 public override ElementLocation TaskParameterLocation {
38                         get { return task_parameter_location; }
39                 }
40                 #endif
41         }
42 }
43