www.pudn.com > ArcgisMapOperation.rar > ObjectTypeOperation.cs
using System;
using System.Collections.Generic;
using System.Text;
using System.Reflection;
namespace ArcgisMapOperation.Common
{
public class ObjectTypeOperation
{
#region 获取Geometry对象类型
///
/// 获取Geometry对象类型
///
///
/// "PolygonGeometry","BoundaryGeometry","GeometryCollection"
public static string GetTypeOfObject(object objGeometry)
{
object strType;
strType = objGeometry.GetType().InvokeMember("Type", BindingFlags.GetProperty, null,
objGeometry, null);
return strType.ToString();
}
#endregion
}
}