Click here to Skip to main content
15,909,498 members
Home / Discussions / C#
   

C#

 
GeneralRe: Excel's MOD in C#? Pin
Peter_in_278018-Aug-19 22:25
professionalPeter_in_278018-Aug-19 22:25 
AnswerRe: Excel's MOD in C#? Pin
OriginalGriff18-Aug-19 22:08
mveOriginalGriff18-Aug-19 22:08 
GeneralRe: Excel's MOD in C#? Pin
Jassim Rahma18-Aug-19 22:22
Jassim Rahma18-Aug-19 22:22 
GeneralRe: Excel's MOD in C#? Pin
OriginalGriff18-Aug-19 22:28
mveOriginalGriff18-Aug-19 22:28 
GeneralRe: Excel's MOD in C#? Pin
BillWoodruff19-Aug-19 21:48
professionalBillWoodruff19-Aug-19 21:48 
AnswerRe: Excel's MOD in C#? Pin
BillWoodruff19-Aug-19 23:43
professionalBillWoodruff19-Aug-19 23:43 
SuggestionRe: Excel's MOD in C#? Pin
Richard Deeming20-Aug-19 1:39
mveRichard Deeming20-Aug-19 1:39 
GeneralRe: Excel's MOD in C#? Pin
BillWoodruff20-Aug-19 3:07
professionalBillWoodruff20-Aug-19 3:07 
Well, there is no code I write you cannot improve, and I am happy to see the improvements, no matter how ephemeral Smile | :)

You are already aware, I'm sure, of the long-standing issue in constraining generic parameters to numeric Types. If you're going to constrain, might as well go for broke:
C#
where T:
     struct,
     IComparable,
     IComparable<T>,
     IConvertible,
     IEquatable<T>,
     IFormattable
Note:

var c1dbl = 'z'.ModT('a'); // invalid cast error

Of course, that's somewhat ironic Smile | :) since you can do this:

int c1int = 'z' % 'a'; // returns #25
«Where is the Life we have lost in living? Where is the wisdom we have lost in knowledge? Where is the knowledge we have lost in information?» T. S. Elliot

GeneralRe: Excel's MOD in C#? Pin
Richard Deeming20-Aug-19 3:23
mveRichard Deeming20-Aug-19 3:23 
GeneralRe: Excel's MOD in C#? Pin
BillWoodruff20-Aug-19 4:42
professionalBillWoodruff20-Aug-19 4:42 
GeneralRe: Excel's MOD in C#? Pin
Richard Deeming20-Aug-19 5:27
mveRichard Deeming20-Aug-19 5:27 
Questionc# Pin
Member 1456180618-Aug-19 5:22
Member 1456180618-Aug-19 5:22 
AnswerRe: c# Pin
OriginalGriff18-Aug-19 6:35
mveOriginalGriff18-Aug-19 6:35 
AnswerRe: c# Pin
#realJSOP21-Aug-19 1:38
professional#realJSOP21-Aug-19 1:38 
QuestionZKTeco merge 3 finger print C# with ZKFingerSDK Pin
Rikus Marais14-Aug-19 2:33
Rikus Marais14-Aug-19 2:33 
AnswerRe: ZKTeco merge 3 finger print C# with ZKFingerSDK Pin
OriginalGriff14-Aug-19 4:08
mveOriginalGriff14-Aug-19 4:08 
GeneralRe: ZKTeco merge 3 finger print C# with ZKFingerSDK Pin
Richard Deeming14-Aug-19 7:56
mveRichard Deeming14-Aug-19 7:56 
AnswerRe: ZKTeco merge 3 finger print C# with ZKFingerSDK Pin
Gerry Schmitz15-Aug-19 4:02
mveGerry Schmitz15-Aug-19 4:02 
GeneralRe: ZKTeco merge 3 finger print C# with ZKFingerSDK Pin
OriginalGriff15-Aug-19 4:12
mveOriginalGriff15-Aug-19 4:12 
GeneralRe: ZKTeco merge 3 finger print C# with ZKFingerSDK Pin
Richard Deeming15-Aug-19 4:33
mveRichard Deeming15-Aug-19 4:33 
GeneralRe: ZKTeco merge 3 finger print C# with ZKFingerSDK Pin
Gerry Schmitz15-Aug-19 9:26
mveGerry Schmitz15-Aug-19 9:26 
QuestionHow i can convert perl scripts to exe file to use in c#? Pin
Member 1455624211-Aug-19 1:25
Member 1455624211-Aug-19 1:25 
AnswerRe: How i can convert perl scripts to exe file to use in c#? Pin
OriginalGriff11-Aug-19 1:28
mveOriginalGriff11-Aug-19 1:28 
AnswerRe: How i can convert perl scripts to exe file to use in c#? Pin
Richard MacCutchan11-Aug-19 3:32
mveRichard MacCutchan11-Aug-19 3:32 
QuestionCheck List Box en C# to select View Schedules in Revit from Visual Studio Pin
Member 145554449-Aug-19 9:44
Member 145554449-Aug-19 9:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.