In the ArcGIS 10 SDK I copied an object by value using the IObjectCopy interface. I can't find a similar thing in the ArcGIS Desktop SDK. I guess its available in the Enterprise SDK but that's not what i am working with. So, what would be equivalent code in Pro if I had this in ArcGIS 10?
'deep clone the IFeatureSelection because it's possible that the Origin and Proximity sources are the same.
Dim objectCopyB As IObjectCopy = New ObjectCopy
Dim objB As Object = objectCopyB.Copy(pFeatSelOriginB)
Dim pFeatSelOrigCloneB As IFeatureSelection = CType(objB, IFeatureSelection)