Following code snippets shows the conversion/replacement code I have for migrated code. ArcObjects code returns false and Pro SDK returns true. Am I missing something here ?
<SPAN class="comment token">//ArcObjects </SPAN>
<SPAN class="token function">CType</SPAN><SPAN class="punctuation token">(</SPAN>lineFeature<SPAN class="punctuation token">.</SPAN>Shape<SPAN class="punctuation token">,</SPAN> ESRI<SPAN class="punctuation token">.</SPAN>ArcGIS<SPAN class="punctuation token">.</SPAN>Geometry<SPAN class="punctuation token">.</SPAN>ITopologicalOperator2<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">.</SPAN>IsKnownSimple_2 <SPAN class="operator token">=</SPAN> False
If Not <SPAN class="token function">CType</SPAN><SPAN class="punctuation token">(</SPAN>lineFeature<SPAN class="punctuation token">.</SPAN>Shape<SPAN class="punctuation token">,</SPAN> ESRI<SPAN class="punctuation token">.</SPAN>ArcGIS<SPAN class="punctuation token">.</SPAN>Geometry<SPAN class="punctuation token">.</SPAN>ITopologicalOperator2<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">.</SPAN>IsSimple Then
<SPAN class="comment token">//Show message that feature is not simple</SPAN>
End If
<SPAN class="comment token">//Pro SDK</SPAN>
GeometryEngine<SPAN class="punctuation token">.</SPAN>Instance<SPAN class="punctuation token">.</SPAN><SPAN class="token function">SimplifyAsFeature</SPAN><SPAN class="punctuation token">(</SPAN>shape<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN>
<SPAN class="keyword token">if</SPAN> <SPAN class="punctuation token">(</SPAN><SPAN class="operator token">!</SPAN>GeometryEngine<SPAN class="punctuation token">.</SPAN>Instance<SPAN class="punctuation token">.</SPAN><SPAN class="token function">IsSimpleAsFeature</SPAN><SPAN class="punctuation token">(</SPAN>shape<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">)</SPAN>
<SPAN class="punctuation token">{</SPAN>
<SPAN class="comment token">//Show message that feature is not simple</SPAN>
<SPAN class="punctuation token">}</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>Sample geometry:
X1 556998.34520000033
Y1 4220274.6404
X2 556921.31929999962
Y2 4220191.6895
X3 556998.34520000033
Y3 4220274.6404