Priority
Major
Type
Bug 
State
Can't Reproduce 
Assignee
Olga Lobacheva 
Subsystem
No subsystem 
Affected versions
Fixed in
Fixed in build
Next build 
Build
720
Checked in Build
915
  • Submitted by   Kirill Falk
    2 years ago (05 Feb 2008 16:49)
  • Updated by Kirill Falk
    18 months ago (04 Aug 2008 20:02)
  • Jira: RSRP-57366
    (history, comments)

RSRP-57366

Cannot apply operator '/' to operands of type 'T' and 'T'

0
public T PerformMathFunctionWithTypeInference<T>(Func<T, T, T> lambdaExpression, T val1, T val2)
        {
            T result = lambdaExpression(val1, val2);
            Console.WriteLine("\tPerformMathFunctionWithTypeInference, val1: {0}, val2: {1}, result: {2}",
                val1, val2, result);

            Console.WriteLine("\t\tType of T: {0}", typeof(T).Name);

            return result;
        }

paramClass.PerformMathFunctionWithTypeInference((val1, val2) => val1 / val2, 200.0, 5.0);


Issue was closed
Comments (0)
 
History (0)
 
Links
 
Issue has no comments