Function to dynamically add two string or add two numbers ?MDmonisha dp8yAsked May 7, 2018, 12:50 AM EDT1 answerShareLinkedInXCopy linkSave1 AnswerKnow the answer? Post it. Somebody with the same question will find it here.SSsiddhartha sharna126 points8y agoPosted May 7, 2018, 6:06 AM EDT0C#Copy static T Sum<T>(T x, T y) { dynamic dx = x, dy = y; return dx + dy; } You can call Like : string t = Sum<string>("XYZ", "ABC");0Join to answer this questionEvery answer you publish earns 20 SHARP.Create free accountSign in
Function to dynamically add two string or add two numbers ?MDmonisha dp8yAsked May 7, 2018, 12:50 AM EDT1 answerShareLinkedInXCopy linkSave
SSsiddhartha sharna126 points8y agoPosted May 7, 2018, 6:06 AM EDT0C#Copy static T Sum<T>(T x, T y) { dynamic dx = x, dy = y; return dx + dy; } You can call Like : string t = Sum<string>("XYZ", "ABC");0
siddhartha sharna126 pointsPosted May 7, 2018, 6:06 AM EDT
static T Sum<T>(T x, T y) { dynamic dx = x, dy = y; return dx + dy; } You can call Like : string t = Sum<string>("XYZ", "ABC");