public void WriteEnumeratedArray(string fieldName, Array values, System.Type systemType)
{
PushArray(fieldName);
// check the length.
if (m_context.MaxArrayLength > 0 && m_context.MaxArrayLength < values.Length)
{
throw new ServiceResultException(StatusCodes.BadEncodingLimitsExceeded);
}
if (values != null)
{
// encode each element in the array.
foreach (Enum value in values)
{
WriteEnumerated(null, value);
}
}
PopArray();
}
#endregion