Closed tossorrow closed 3 years ago
public static string ToSml<T>(this T t) can convert any class to sml string. public static T ToType<T>(this SecsMessage msg) can convert SecsMessage to Corresponding type.
public static string ToSml<T>(this T t)
public static T ToType<T>(this SecsMessage msg)
I'd not accept this PR. Because it is not directly related to the core function.
btw, the implementation has lots of room to improve, e.q. generic type constraint, reflection usage.
ok, thx for advice
public static string ToSml<T>(this T t)
can convert any class to sml string.public static T ToType<T>(this SecsMessage msg)
can convert SecsMessage to Corresponding type.