I want to create a feature layer from a layer (.lyr) file and add it to my ArcGIS map document programmatically. I am using C# and ArcGIS.
I have a layer file and a shapefile.
There's a snippet for this in the ArcObjects .NET SDK: Add Layer File to ActiveView Snippet
add reference
of ESRI Catalog UI Object Library
in visual studios project.