using System; using System.Collections.Generic; using System.Text; namespace DTO { [Serializable] public class ActionEntity { /// /// 行为名称 /// public string ActionName { get; set; } /// /// 行为函数 /// public string ActionFun { get; set; } public string PageIco { get; set; } /// /// 行为地址: /// public string ActionUrl { get; set; } /// /// 开发方式 3 函数 4 选项卡地址 5 新浏览器选项卡 /// public int OpenType { get; set; } public int PageSuperior { get; set; } public int PageId { get; set; } } public class ActionEntityIdComparer : IEqualityComparer { public bool Equals(ActionEntity x, ActionEntity y) { if (x == null) return y == null; return x.PageId == y.PageId; } public int GetHashCode(ActionEntity obj) { if (obj == null) return 0; return obj.PageId.GetHashCode(); } } }