7public sealed class Module : IEquatable<Module>
12 public string Name {
get; }
30 if (ReferenceEquals(
null, other))
return false;
31 if (ReferenceEquals(
this, other))
return true;
40 public override bool Equals(
object? obj)
42 if (ReferenceEquals(
null, obj))
return false;
43 if (ReferenceEquals(
this, obj))
return true;
44 if (obj.GetType() != GetType())
return false;
54 return Name.GetHashCode();
Represents a module, a singleton object grouping related functionalities. Modules are serialized as @...
override int GetHashCode()
The default hash function.
bool Equals(Module? other)
Determines whether the specified Module is equal to the current Module.
string Name
Gets the name of the module. The name is used to identify and reference the module.
override bool Equals(object? obj)
Determines whether the specified object is equal to the current Module.
Module(string name)
Initializes a new instance of the Module class with the specified name.