Exemplo n.º 1
0
 private Func <T, string> getMemoryFormatter <T>(string label) where T : struct, IComparable, IComparable <T>, IConvertible, IEquatable <T>, IFormattable
 {
     return((T v) => string.Format(getMemoryFormat(label), Metric <T> .ConvertTo <float>(v) / 1048576f));
 }