Exemple #1
0
 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>();
 }
Exemple #2
0
        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);
        }
Exemple #3
0
 public override int GetHashCode()
 {
     return(SchemaReference.GetHashCode()
            ^ Units.GetHashCode()
            ^ FilingIndicators.GetHashCode());
 }