/// <summary> /// Convert an <see cref="LSLType" /> to an LSL type name string. /// </summary> /// <param name="type"><see cref="LSLType" /> to convert.</param> /// <returns>LSL type string representation.</returns> /// <exception cref="ArgumentException">If <see cref="LSLType" /> is <see cref="LSLType.Void" />.</exception> public static string ToLSLTypeName(this LSLType type) { if (type == LSLType.Void) { throw new ArgumentException("Cannot convert LSLType.Void to a valid LSL type string", "type"); } return(type.ToString().ToLower()); }