public DefineQuantitiesAttribute(params object[] quantitiesInfo) { int n = quantitiesInfo.Length; System.Diagnostics.Trace.Assert(n % 3 == 0); for (int i = 0; i < n; i += 3) { Quantities.DefineQuantity(quantitiesInfo[i], quantitiesInfo[i + 1], quantitiesInfo[i + 2]); } }