diff options
Diffstat (limited to 'mcs/class/Microsoft.Build/Microsoft.Build.Execution/ProjectMetadataInstance.cs')
-rw-r--r-- | mcs/class/Microsoft.Build/Microsoft.Build.Execution/ProjectMetadataInstance.cs | 30 |
1 files changed, 22 insertions, 8 deletions
diff --git a/mcs/class/Microsoft.Build/Microsoft.Build.Execution/ProjectMetadataInstance.cs b/mcs/class/Microsoft.Build/Microsoft.Build.Execution/ProjectMetadataInstance.cs index b0386fe28a..c94fe8740d 100644 --- a/mcs/class/Microsoft.Build/Microsoft.Build.Execution/ProjectMetadataInstance.cs +++ b/mcs/class/Microsoft.Build/Microsoft.Build.Execution/ProjectMetadataInstance.cs @@ -27,15 +27,29 @@ // using System; +using Microsoft.Build.Construction; namespace Microsoft.Build.Execution { - public class ProjectMetadataInstance - { - private ProjectMetadataInstance () - { - throw new NotImplementedException (); - } - } + public class ProjectMetadataInstance + { + internal ProjectMetadataInstance (string name, string value) + { + Name = name; + EvaluatedValue = value; + } + + public string EvaluatedValue { get; private set; } + public string Name { get; private set; } + + public ProjectMetadataInstance DeepClone () + { + return new ProjectMetadataInstance (Name, EvaluatedValue); + } + + public override string ToString () + { + return string.Format ("{0}={1}", Name, EvaluatedValue); + } + } } - |