コード例 #1
0
 /// <summary>Loads a comma-separated list of doubles from Properties.</summary>
 /// <remarks>Loads a comma-separated list of doubles from Properties.  The list cannot include any whitespace.</remarks>
 public static double[] GetDoubleArray(Properties props, string key)
 {
     double[] result = MetaClass.Cast(props.GetProperty(key), typeof(double[]));
     return(ArrayUtils.ToPrimitive(result));
 }
コード例 #2
0
 /// <summary>Loads a comma-separated list of integers from Properties.</summary>
 /// <remarks>Loads a comma-separated list of integers from Properties.  The list cannot include any whitespace.</remarks>
 public static int[] GetIntArray(Properties props, string key)
 {
     int[] result = MetaClass.Cast(props.GetProperty(key), typeof(int[]));
     return(ArrayUtils.ToPrimitive(result));
 }