diff --git a/rd-net/RdFramework/Impl/Protocol.cs b/rd-net/RdFramework/Impl/Protocol.cs index ac4b61093..f92724222 100644 --- a/rd-net/RdFramework/Impl/Protocol.cs +++ b/rd-net/RdFramework/Impl/Protocol.cs @@ -137,7 +137,7 @@ internal void SubmitExtCreated(ExtCreationInfo info) public RName Location { get; } IProtocol IRdDynamic.TryGetProto() => this; - public T? GetExtension() where T : RdExtBase + public virtual T? GetExtension() where T : RdExtBase { var parentProtocol = myParentProtocol; if (parentProtocol != null) @@ -149,7 +149,7 @@ internal void SubmitExtCreated(ExtCreationInfo info) } } - public T GetOrCreateExtension(Func create) where T : RdExtBase + public virtual T GetOrCreateExtension(Func create) where T : RdExtBase { if (create == null) throw new ArgumentNullException(nameof(create));