예제 #1
0
 /// <summary>
 /// Reads <see cref="Decimal10x5"/> instances from the current stream and returns them.
 /// </summary>
 /// <param name="self">The extended <see cref="BinaryDataReader"/>.</param>
 /// <param name="count">The number of instances to read.</param>
 /// <returns>The <see cref="Decimal10x5"/> instances.</returns>
 public static IList <Decimal10x5> ReadDecimal10x5s(this BinaryDataReader self, int count)
 {
     Decimal10x5[] values = new Decimal10x5[count];
     for (int i = 0; i < count; i++)
     {
         values[i] = self.ReadDecimal10x5();
     }
     return(values);
 }
 /// <summary>
 /// Writes a <see cref="Decimal10x5"/> instance into the current stream.
 /// </summary>
 /// <param name="self">The extended <see cref="BinaryDataWriter"/>.</param>
 /// <param name="value">The <see cref="Decimal10x5"/> instance.</param>
 public static void Write(this BinaryDataWriter self, Decimal10x5 value)
 {
     self.Write(value.Raw);
 }