1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2024-11-23 17:42:46 +01:00
TweetDuck/lib/TweetLib.Browser/Base/BaseBrowser.cs

16 lines
442 B
C#

using System;
using TweetLib.Browser.Interfaces;
namespace TweetLib.Browser.Base {
public class BaseBrowser<T> : IDisposable where T : BaseBrowser<T> {
protected readonly IBrowserComponent browserComponent;
protected BaseBrowser(IBrowserComponent browserComponent, Func<T, BrowserSetup> setup) {
this.browserComponent = browserComponent;
this.browserComponent.Setup(setup((T) this));
}
public virtual void Dispose() {}
}
}