コード例 #1
0
 /// <summary>
 /// This creates a record with two fields, a string called "Currency" and a decimal string called "Rate" with a
 /// default value of 1.00 which repeats a specified number of times.
 /// </summary>
 /// <param name="name">The record name.</param>
 /// <param name="occurs">The number of occurrences of the "Rate" field.</param>
 /// <returns>The record metadata definition.</returns>
 public IMRecord CreateMultipleRateCurrencyRecord(string name, int occurs)
 {
     return(factory.RecordBuilder(name)
            .Add(factory.String("Currency"))
            .Add(factory.Decimal("Rate", "1.00"), occurs)
            .Build());
 }