/// <summary> /// This method is typically only used when converting an Item Format Code /// from its "wire/transmission format" into the format used /// (a type of SECSItem) in the C# environment. /// </summary> /// <returns>The SECSI tem format code from number.</returns> /// <param name="number">Number.</param> public static SECSItemFormatCode GetSECSItemFormatCodeFromNumber(byte number) { return(RawSECSItemFormatCode.mapNumberToFormatCode(number)); }
/// <summary> /// This method is typically only used the retrieve the proper numeric value /// of an Item Format Code during the conversion of a <c>SECSItem</c> into its /// "wire/transmission format". /// </summary> /// <returns>The number value of the specified <c>SECSItemFormatCode</c>.</returns> /// <param name="formatCode">Item format code.</param> public static int GetNumberFromSECSItemFormatCode(SECSItemFormatCode formatCode) { return(RawSECSItemFormatCode.mapFormatCodeToNumber(formatCode)); }