Moving structure as preparation for docs

This commit is contained in:
2025-08-06 21:05:47 +02:00
parent 885079ae70
commit 799a014b15
117 changed files with 629 additions and 664 deletions

View File

@@ -0,0 +1,23 @@
using System.Reflection;
namespace AMWD.Protocols.Modbus.Tests
{
internal static class Helper
{
public static T CreateInstance<T>(params object[] args)
{
var type = typeof(T);
object instance = type.Assembly.CreateInstance(
typeName: type.FullName,
ignoreCase: false,
bindingAttr: BindingFlags.Instance | BindingFlags.NonPublic,
binder: null,
args: args,
culture: null,
activationAttributes: null);
return (T)instance;
}
}
}