Ejemplo n.º 1
0
 public void WriteAsYAML(System.CodeDom.Compiler.IndentedTextWriter TW)
 {
     TW.WriteLine("# Termination Counter ({0}) info", TheCountType.ToString());
     foreach (var terminationTypeCounterPair in Counters)
     {
         TW.WriteLine("{0}: {1}", StripPrefix(terminationTypeCounterPair.Key.ToString()), terminationTypeCounterPair.Value.ToString());
     }
 }
Ejemplo n.º 2
0
 private void UpdateText(int count)
 {
     _text.text = string.Format("Count {0} = {1}", Type.ToString(), count);
 }
Ejemplo n.º 3
0
 /// <summary>
 /// MDX 'Count' function. Returns the number of cells in a set.
 /// </summary>
 /// <param name="set">A valid Multidimensional Expressions (MDX) expression that returns a set.</param>
 /// <param name="countType">Indicator to include or exclude empty cells.</param>
 /// <returns></returns>
 public static Member Count(Set set, CountType countType) =>
 new Member($"Count({set}, {countType.ToString().ToUpper()})");