public Instance() { Namespaces = new XmlNamespaceManager(new NameTable()); AddDefaultNamespaces(); SchemaReference = new SchemaReference(); FilingIndicators = new FilingIndicatorCollection(); Units = new UnitCollection(this); Contexts = new ContextCollection(this); Facts = new FactCollection(this); Comments = new Collection <string>(); }
public bool Equals(Instance other) { var result = false; if (other != null) { if (SchemaReference.Equals(other.SchemaReference)) { if (Units.Equals(other.Units)) { if (FilingIndicators.Equals(other.FilingIndicators)) { if (Contexts.Equals(other.Contexts)) { result |= Facts.Equals(other.Facts); } } } } } return(result); }
public override int GetHashCode() { return(SchemaReference.GetHashCode() ^ Units.GetHashCode() ^ FilingIndicators.GetHashCode()); }