Example #1
0
        public override bool Equals(object obj)
        {
            RowField field = obj as RowField;

            if (field == null)
            {
                return(false);
            }

            return(field.ToString().Equals(this.ToString()));
        }
 public object this[RowField field]
 {
     get
     {
         return(_internalData[field]);
     }
     set
     {
         if (value != null)
         {
             field.DataType       = value.GetType();
             _internalData[field] = value;
         }
     }
 }
        internal string GetFormattedString(RowField field)
        {
            object internalValue = _internalData[field];

            if (internalValue == null)
            {
                return(string.Empty);
            }

            if (internalValue is string && string.IsNullOrEmpty((string)internalValue))
            {
                return(string.Empty);
            }

            return(string.Format(field.DataFormatString, _internalData[field]));
        }