AnsweredAssumed Answered

How to cast a FeatureClass?

Question asked by shaningesri on Dec 2, 2014
Latest reply on Jun 25, 2015 by FGibson-esristaff

I need to cast a featureclass to IPolyline.  In this piece of code below

IFeatureClass fcR = gHelp.GetFeatureClass(pWS2, fNameR);

ESRI.ArcGIS.Geometry.IPolyline refLine = fcR as ESRI.ArcGIS.Geometry.IPolyline;

the IPolyline refLine is null.  What's wrong in this piece of code?  Thanks if you can help.