Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
SetOfFunctions.cs
1using System;
4
6{
10 public sealed class SetOfFunctions : Set
11 {
12 private static readonly int hashCode = typeof(SetOfFunctions).GetHashCode();
13
18 {
19 }
20
24 public static readonly SetOfFunctions Instance = new SetOfFunctions();
25
31 public override bool Contains(IElement Element)
32 {
33 return Element is Operators.LambdaDefinition;
34 }
35
41 public override bool Equals(object obj)
42 {
43 return obj is SetOfFunctions;
44 }
45
50 public override int GetHashCode()
51 {
52 return hashCode;
53 }
54 }
55}
Base class for all types of elements.
Definition: Element.cs:13
Base class for all types of sets.
Definition: Set.cs:14
abstract override int GetHashCode()
Calculates a hash code of the element.
Set containing all functions.
override bool Equals(object obj)
Compares the element to another.
static readonly SetOfFunctions Instance
Instance of the set of all functions.
override bool Contains(IElement Element)
Checks if the set contains an element.
SetOfFunctions()
Set containing all functions.
override int GetHashCode()
Calculates a hash code of the element.
Basic interface for all types of elements.
Definition: IElement.cs:20