Пример #1
0
 /// <summary>
 /// This method is typically only used when converting an Item Format Code
 /// from its &quot;wire/transmission format&quot; 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));
 }
Пример #2
0
 /// <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
 /// &quot;wire/transmission format&quot;.
 /// </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));
 }