Преобразование часового пояса Python

http://www.yoda.arachsys.com/csharp/genericoperators.html

static T Add(T a, T b) {
    //TODO: re-use delegate!
    // declare the parameters
    ParameterExpression paramA = Expression.Parameter(typeof(T), "a"),
        paramB = Expression.Parameter(typeof(T), "b");
    // add the parameters together
    BinaryExpression body = Expression.Add(paramA, paramB);
    // compile it
    Func add = Expression.Lambda>(body, paramA, paramB).Compile();
    // call it
    return add(a,b);       
}

54
задан Kevin Bedell 5 December 2017 в 14:59
поделиться