Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/Framework/TaskItemData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public TaskItemData(ITaskItem original)
IEnumerable<KeyValuePair<string, string>> IMetadataContainer.EnumerateMetadata() => Metadata;

void IMetadataContainer.ImportMetadata(IEnumerable<KeyValuePair<string, string>> metadata)
=> throw new NotImplementedException();
=> throw new InvalidOperationException($"{nameof(TaskItemData)} does not support write operations");

public int MetadataCount => Metadata.Count;

Expand All @@ -66,7 +66,7 @@ public IDictionary CloneCustomMetadata()

public void CopyMetadataTo(ITaskItem destinationItem)
{
throw new NotImplementedException();
throw new InvalidOperationException($"{nameof(TaskItemData)} does not support write operations");
}

public string GetMetadata(string metadataName)
Expand All @@ -77,12 +77,12 @@ public string GetMetadata(string metadataName)

public void RemoveMetadata(string metadataName)
{
throw new NotImplementedException();
throw new InvalidOperationException($"{nameof(TaskItemData)} does not support write operations");
}

public void SetMetadata(string metadataName, string metadataValue)
{
throw new NotImplementedException();
throw new InvalidOperationException($"{nameof(TaskItemData)} does not support write operations");
}

public override string ToString()
Expand Down