Пример #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = (Uri != null ? Uri.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Ontology != null ? Ontology.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Name != null ? Name.GetHashCode() : 0);
         return(hashCode);
     }
 }
 public void TestFixtureSetup()
 {
     _ontology = new TestOntologyProvider().Ontologies.First();
 }
Пример #3
0
 /// <summary>Determines whether the specified ontology is equal to the ontology object.</summary>
 /// <param name="operand">Type: <see cref="Ontology" />
 /// The ontology to compare with the current ontology.</param>
 /// <returns>Type: <see cref="System.Boolean" />
 /// <b>true</b> if the specified ontology hase equal namespace with current ontology; otherwise, <b>false</b>.</returns>
 private bool Equals(Ontology operand)
 {
     return Equals(_namespace, operand._namespace);
 }
Пример #4
0
 public DebuggerDisplayProxy(Ontology ontology)
 {
     _ontology = ontology;
 }
 /// <summary>Default parameterles constructor.</summary>
 public OntologyProviderBase()
 {
     Ontologies = new Ontology[0];
 }