What is the best syntax here??

Discussion created by jvickrey79 on Feb 3, 2011
Latest reply on Nov 21, 2011 by gur.hanan
In my C# console application I tried using the below line of code to declare a IFeatureClassName object but Visual Studio 2010 says that FeatureClassNameClass() has No Constructors defined.  What??

IFeatureClassName pOutFeatClassName = (IFeatureClassName)new FeatureClassNameClass();

Also If I changed my code to the below line of code Visual Studio will not show any errors on the syntax but when I start debugging my application and I reach this line, Visual Studio throws a crazy error stating something like "error on vshost32.. and just stops debugging

IFeatureClassName pOutFeatClassName = (IFeatureClassName)new FeatureClassName();

Does anyone have any suggestions for me?  Thanks