IArea.Area value in ArcMap 10.1

Discussion created by raderaca on Sep 25, 2012
Im using ArcGis 10 sdk for development of an add-in. Ive installed it on both ArcMap 10 and 10.1 and Ive noticed some differences when I tried to get area of features.

For ArcMap 10, this code:

       double GetArea(IFeature feature)
            return (feature.Shape as IArea).Area;

returns area in area units (square meter, square feet...), if coordinate system of the feature's feature class is  projected. Otherwise it returns value in decimal degrees.

In ArcMap 10.1 the same code always returns area in decimal degrees.

Is this a bug? Do I have to install 10.1 ArcMap in order to get this to work?