Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
Namespaces.cs
1using System;
4
6{
10 public sealed class Namespaces : SemiGroup
11 {
12 private static readonly int hashCode = typeof(Namespaces).FullName.GetHashCode();
13
17 public Namespaces()
18 {
19 }
20
26 public override bool Contains(IElement Element)
27 {
28 return Element is Namespace;
29 }
30
32 public override bool Equals(object obj)
33 {
34 return obj is Namespaces;
35 }
36
38 public override int GetHashCode()
39 {
40 return hashCode;
41 }
42 }
43}
Base class for all types of elements.
Definition: Element.cs:13
Base class for all types of semigroups.
Definition: SemiGroup.cs:10
abstract override int GetHashCode()
Calculates a hash code of the element.
override bool Equals(object obj)
Compares the element to another. If elements are equal.
Definition: Namespaces.cs:32
Namespaces()
Set of namespaces.
Definition: Namespaces.cs:17
override bool Contains(IElement Element)
Checks if the set contains an element.
Definition: Namespaces.cs:26
override int GetHashCode()
Calculates a hash code of the element. Hash code.
Definition: Namespaces.cs:38
Basic interface for all types of elements.
Definition: IElement.cs:20