...
Thanks. It looks easy. The basic class has methods that convert stuff, but when I looked at some C# and PS code it seems there are bit and array variables that have to be initialized and that looked a little intimidating as you had mentioned in a previous post I made to stay away from the CLR arrays.
Generally, WIL arrays work as
[in] parameters to CLR methods or property assignments. If you have a WIL array of numbers and the CLR method parameter is expecting something other than 4 byte intenger elements you may have to use ObjectType. For example, if an parameter is expecting an array of signed bytes you might need to do something like the following
aBytes = ArrDimension(2)
aBytes[0] = 1
aBytes[1] = 2
saBytes = ObjectType("array|i1", aBytes)
before you pass the array to the method.
The only other caveat is you
cannot call methods that fill an array parameter with values. This is because WinBatch does not support
[out] parameters for CLR class methods.