public Int32 Add(MetaTagData val)
 {
     if (-1 == IndexOf(val))
     {
         return(List.Add(val));
     }
     return(-1);
 }
		public Int32 Add(MetaTagData val)
		{
			if (-1 == IndexOf(val))
			{
				return List.Add(val);
			}
			return -1;
		}
Пример #3
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="obj"></param>
        /// <returns></returns>
        public int CompareTo(object obj)
        {
            MetaTagData obOther = obj as MetaTagData;

            if (null != obOther)
            {
                return(String.Compare(obOther.Name, this.Name, true));
            }
            throw new ArgumentException("Object is not of " + this.GetType().Name);
        }
Пример #4
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="obj"></param>
        /// <returns></returns>
        public override bool Equals(object obj)
        {
            MetaTagData obOther = obj as MetaTagData;

            if (null != obOther)
            {
                //return (String.Compare(obOther.Name, this.Name, true) == 0);
                return(PlatformTools.CompareStr(obOther.Name, this.Name, true) == 0);
            }
            throw new ArgumentException("Object is not of " + this.GetType().Name);
        }
 public Int32 IndexOf(MetaTagData val)
 {
     return(List.IndexOf(val));
 }
		public Int32 IndexOf(MetaTagData val)
		{
			return List.IndexOf(val);
		}