string GetMetadataValue(string metadataName) { if (ReservedNameUtils.IsReservedMetadataName(metadataName)) { return(ReservedNameUtils.GetReservedMetadata(ItemSpec, metadataName, escapedMetadata)); } return(((string)escapedMetadata [metadataName]) ?? String.Empty); }
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); } }
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); } }
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); } }
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); } }