我正在开发C#/ .NET应用程序,在生产现场我们有一些奇特的30Kbps以太网网络链接.我在网卡100Mbps上测试我的应用程序并且一切正常,但似乎有些排队在慢速链接上表现不同.
如何将桌面以太网卡设置为30Kbps以模拟我的生产站点?
我正在开发C#/ .NET 3.5应用程序(并希望继续使用该版本的.NET),并且无法使用Reflection来解决如何解决此问题.我找到了解决方法,但不是"整洁".代码如下,我需要发现所有接口实现,以便将来在添加更多接口实现时,我不需要更改现有代码.
interface Ii { }
class A : Ii { }
class A1 : A { }
class A2 : A { }
class A3 : A { }
class B : Ii { }
class C : Ii{ }
// maybe in future class D : Ii { }
// maybe in future class E : Ii { }
class Helper
{
static List<Type> GetAllInterfaceImplemenations()
{// do reflection magic and return ["A1","A2","A3","B","C"] ...
// I will use …Run Code Online (Sandbox Code Playgroud)