1 // 2 // Copyright (c) 2010-2018 Antmicro 3 // Copyright (c) 2011-2015 Realtime Embedded 4 // 5 // This file is licensed under the MIT License. 6 // Full license text is available in 'licenses/MIT.txt'. 7 // 8 using System; 9 using Antmicro.Renode.Core.Structure; 10 11 namespace Antmicro.Renode.Core.Structure 12 { 13 public sealed class USBRegistrationPoint : NumberRegistrationPoint<byte?> 14 { base(port)15 public USBRegistrationPoint(byte? port = null) : base(port) 16 { 17 } 18 ToString()19 public override string ToString() 20 { 21 return string.Format("Port {0}", Address); 22 } Equals(object obj)23 public override bool Equals (object obj) 24 { 25 var other = obj as USBRegistrationPoint; 26 if(other == null) 27 return false; 28 return base.Equals(other); 29 } 30 GetHashCode()31 public override int GetHashCode () 32 { 33 return base.GetHashCode (); 34 } 35 } 36 } 37 38