SHARE
TWEET

Untitled

a guest Jan 18th, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public SmaSeries(ISeries<decimal> parent, int periods, TierKind? runOnTier = null)
  2.    
  3. new object[]
  4.  {
  5.     new DecimalSeries(),
  6.     20,
  7.     new Nullable<TierKind>(TierKind.Client)
  8.  }
  9.  
  10. //DecimalSeries implements ISeries<decimal>
  11.    
  12. using System;
  13.  
  14. class SmaSeries
  15. {
  16.     public SmaSeries(ISeries<decimal> parent, int periods,
  17.          TierKind? runOnTier = null) { }
  18.     static void Main()
  19.     {
  20.         object[] args = new object[]
  21.          {
  22.             new DecimalSeries(),
  23.             20,
  24.             new Nullable<TierKind>(TierKind.Client)
  25.          };
  26.  
  27.         object obj = Activator.CreateInstance(typeof(SmaSeries), args);
  28.     }
  29. }
  30. enum TierKind { Client }
  31. interface ISeries<T> { }
  32. class DecimalSeries : ISeries<decimal> { }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top