예제 #1
0
 string GetMetadataValue(string metadataName)
 {
     if (ReservedNameUtils.IsReservedMetadataName(metadataName))
     {
         return(ReservedNameUtils.GetReservedMetadata(ItemSpec, metadataName, escapedMetadata));
     }
     return(((string)escapedMetadata [metadataName]) ?? String.Empty);
 }
예제 #2
0
 public string GetMetadata(string metadataName)
 {
     if (ReservedNameUtils.IsReservedMetadataName(metadataName))
     {
         return(ReservedNameUtils.GetReservedMetadata(ItemSpec, metadataName, metadata));
     }
     else if (metadata.Contains(metadataName))
     {
         return((string)metadata [metadataName]);
     }
     else
     {
         return(String.Empty);
     }
 }
예제 #3
0
 public string GetMetadata(string metadataName)
 {
     if (ReservedNameUtils.IsReservedMetadataName(metadataName))
     {
         string metadata = ReservedNameUtils.GetReservedMetadata(FinalItemSpec, metadataName, unevaluatedMetadata);
         return((metadataName.ToLower() == "fullpath") ? MSBuildUtils.Escape(metadata) : metadata);
     }
     else if (unevaluatedMetadata.Contains(metadataName))
     {
         return((string)unevaluatedMetadata [metadataName]);
     }
     else
     {
         return(String.Empty);
     }
 }
예제 #4
0
        public string GetEvaluatedMetadata(string metadataName)
        {
            if (ReservedNameUtils.IsReservedMetadataName(metadataName))
            {
                string metadata = ReservedNameUtils.GetReservedMetadata(FinalItemSpec, metadataName, evaluatedMetadata);
                return(MSBuildUtils.Unescape(metadata));
            }

            if (evaluatedMetadata.Contains(metadataName))
            {
                return((string)evaluatedMetadata [metadataName]);
            }
            else
            {
                return(String.Empty);
            }
        }
예제 #5
0
 public string GetMetadata(string metadataName)
 {
     if (ReservedNameUtils.IsReservedMetadataName(metadataName))
     {
         string metadata = ReservedNameUtils.GetReservedMetadata(FinalItemSpec, metadataName, unevaluatedMetadata);
         return(string.Equals(metadataName, "fullpath", StringComparison.OrdinalIgnoreCase)
                                 ? MSBuildUtils.Escape(metadata)
                                 : metadata);
     }
     else if (unevaluatedMetadata.Contains(metadataName))
     {
         return((string)unevaluatedMetadata [metadataName]);
     }
     else
     {
         return(String.Empty);
     }
 }