public bool Match(WSFormat value) { try { return(value != null && ( value.code == code )); } catch (Exception) { return(false); } }
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()); }
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 }