Esempio n. 1
0
 public bool Match(WSFormat value)
 {
     try
     {
         return(value != null &&
                (
                    value.code == code
                ));
     }
     catch (Exception) { return(false); }
 }
Esempio n. 2
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }
            WSFormat p = obj as WSFormat;

            if ((System.Object)p == null)
            {
                return(false);
            }
            return(GetHashCode() == p.GetHashCode());
        }
Esempio n. 3
0
 public void ReadXmlAttributes(System.Xml.XmlReader reader)
 {
     #region Name
     string _Name = reader["name"];
     if (!string.IsNullOrEmpty(_Name))
     {
         WSFormat _format = WSConstants.FORMAT.FORMATS.FirstOrDefault(x => x.name.Equals(_Name.ToLower()));
         if (_format != null)
         {
             code       = _format.code;
             name       = _format.name;
             isStandard = _format.isStandard;
             isFixed    = _format.isFixed;
         }
     }
     #endregion
 }