AnsweredAssumed Answered

How to cast in opening an ESRI.ArcGIS.Location.RouteMeasureLineLocationClass?

Question asked by shaningesri on Sep 24, 2013
Latest reply on Sep 27, 2013 by shaningesri
I want to open an ESRI.ArcGIS.Location.RouteMeasureLineClass from a GeoDB.  From
I got Open LocalLocatorWorkspace.  Then I used the code below: 
        public ESRI.ArcGIS.Location.RouteMeasureLineLocationClass GetRouteMeasureClass(ESRI.ArcGIS.Location.IDatabaseLocatorWorkspace ws, string fName)
            IFeatureWorkspace fWs = (IFeatureWorkspace)ws;
            return (ESRI.ArcGIS.Location.RouteMeasureLineLocationClass)(fWs.OpenFeatureClass(fName));
But got error:  Cannot implicitly convert type 'ESRI.ArcGIS.Geodatabase.IFeatureClass' to 'ESRI.ArcGIS.Location.RouteMeasureLineLocationClass'. An explicit conversion exists (are you missing a cast?)
How can a proper casting be applied?  Thanks.