Barotrauma Client Doc
Address.cs
1 #nullable enable
2 
3 namespace Barotrauma.Networking
4 {
5  abstract class Address
6  {
7  public abstract string StringRepresentation { get; }
8 
9  public static Option<Address> Parse(string str)
10  => ReflectionUtils.ParseDerived<Address, string>(str);
11 
12  public abstract bool IsLocalHost { get; }
13 
14  public abstract override bool Equals(object? obj);
15 
16  public abstract override int GetHashCode();
17 
18  public override string ToString() => StringRepresentation;
19 
20  public static bool operator ==(Address a, Address b)
21  => a.Equals(b);
22 
23  public static bool operator !=(Address a, Address b)
24  => !(a == b);
25  }
26 }
abstract override int GetHashCode()
static bool operator==(Address a, Address b)
static bool operator!=(Address a, Address b)
abstract string StringRepresentation
Definition: Address.cs:7
static Option< Address > Parse(string str)
abstract override bool Equals(object? obj)
override string ToString()
abstract bool IsLocalHost
Definition: Address.cs:12