public xdrEncodeStringFixedVector ( Array value, int length ) : void | ||
value | Array | String vector to be encoded. |
length | int | /// of vector to write. This parameter is used as a sanity /// check. /// |
return | void |
public void xdrEncodeStringFixedVector(string[] value, int length)
{
if (value.Length != length)
{
throw (new System.ArgumentException("array size does not match protocol specification"
));
}
for (int i = 0; i < length; i++)
{
xdrEncodeString(value[i]);
}
}