mkjeff / secs4net

SECS-II/HSMS-SS/GEM implementation on .NET
https://mkjeff.github.io/secs4net/
MIT License
443 stars 195 forks source link

some extension methods #58

Closed tossorrow closed 3 years ago

tossorrow commented 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.

mkjeff commented 3 years ago

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.

tossorrow commented 3 years ago

ok, thx for advice