          
             Using <span class="selflink">ToCurve(PolyCurve)</span> as extension method:
            
             <div class="codeSnippetContainer"><div class="codeSnippetContainerTabs"><div id="ID0EBEDBA_tab1" class="codeSnippetContainerTab"><a href="#" onclick="javascript:ChangeTab('ID0EBEDBA','cs','1','2');return false;">C#</a></div><div id="ID0EBEDBA_tab2" class="codeSnippetContainerTab"><a href="#" onclick="javascript:ChangeTab('ID0EBEDBA','py','2','2');return false;">Python</a></div></d