2 implementations of DeepClone
Microsoft.Build (2)
Collections\CopyOnWritePropertyDictionary.cs (1)
365public ICopyOnWritePropertyDictionary<T> DeepClone()
Instance\ImmutableProjectCollections\ImmutablePropertyCollectionConverter.cs (1)
31public ICopyOnWritePropertyDictionary<T> DeepClone() => this;
4 references to DeepClone
Microsoft.Build (4)
Instance\ProjectItemInstance.cs (4)
740directMetadata?.DeepClone(), // copy on write! 1142return (_directMetadata == null) ? new CopyOnWritePropertyDictionary<ProjectMetadataInstance>() : _directMetadata.DeepClone(); // copy on write! 1430destinationAsTaskItem._directMetadata = _directMetadata?.DeepClone(); // copy on write! 1843_directMetadata = metadata.DeepClone(); // Copy on write !