public SiteMapItem(ParentFunc parentFunc, ChildrenFunc childrenFunc, ConverterFunc converterFunc, DB db)
 {
     _childrenDelegate  = childrenFunc;
     _parentDelegate    = parentFunc;
     _converterDelegate = converterFunc;
     _db = db;
 }
 public SiteMapItem(SiteMapItem parent)
 {
     _childrenDelegate  = parent._childrenDelegate;
     _parentDelegate    = parent._parentDelegate;
     _converterDelegate = parent._converterDelegate;
     _db = parent._db;
 }
Example #3
0
 public AnimationKeyframeData(int elementCount, ConverterFunc converter)
 {
     _values      = new float[elementCount];
     _enterValues = new bool[elementCount];
     for (int i = 0; i < _enterValues.Length; i++)
     {
         _enterValues[i] = false;
     }
     _converter = converter;
 }
Example #4
0
 public int ConvertUsingMethod(ConverterFunc converterCallback, int numberToConvert)
 {
     return converterCallback(numberToConvert);
 }
 public U To <U>()
 {
     try { return(ConverterFunc <T, U> .Instance(source)); }
     catch (TypeInitializationException e) { throw e.InnerException; }
 }