Click here to Skip to main content
15,910,980 members
Home / Discussions / C#
   

C#

 
QuestionSimulation of Circuits Pin
sabeel alwosol5-Feb-09 21:33
sabeel alwosol5-Feb-09 21:33 
AnswerRe: Simulation of Circuits Pin
Harvey Saayman5-Feb-09 21:59
Harvey Saayman5-Feb-09 21:59 
AnswerRe: Simulation of Circuits Pin
Bharat Jain6-Feb-09 0:00
Bharat Jain6-Feb-09 0:00 
Questionis it posible to run WS IIS on UNIX ? Pin
E_Gold5-Feb-09 20:42
E_Gold5-Feb-09 20:42 
AnswerRe: is it posible to run WS IIS on UNIX ? Pin
Bharat Jain5-Feb-09 21:00
Bharat Jain5-Feb-09 21:00 
AnswerRe: is it posible to run WS IIS on UNIX ? Pin
SeMartens5-Feb-09 21:05
SeMartens5-Feb-09 21:05 
AnswerRe: is it posible to run WS IIS on UNIX ? Pin
Harvey Saayman5-Feb-09 22:03
Harvey Saayman5-Feb-09 22:03 
QuestionOptimize this code Pin
anderslundsgard5-Feb-09 20:36
anderslundsgard5-Feb-09 20:36 
I have a function that very often are called. Any tip on how to optimize this code:

private static double CalculateDifferance(object from, object to)
{
   if (typeof(int) == from.GetType())
   {
      return (int)to - (int)from;
   }
   else if (typeof(DateTime) == from.GetType())
   {
      return ((DateTime)to - (DateTime)from).TotalSeconds;
   }
   else if(typeof(double) == from.GetType())
   {
      return (double)to - (double)from;
			}
      return double.NaN;
}


_____________________________

...and justice for all

AnswerRe: Optimize this code Pin
Christian Graus5-Feb-09 20:41
protectorChristian Graus5-Feb-09 20:41 
AnswerRe: Optimize this code Pin
Vikram A Punathambekar5-Feb-09 21:27
Vikram A Punathambekar5-Feb-09 21:27 
AnswerRe: Optimize this code Pin
kaminem5-Feb-09 23:52
kaminem5-Feb-09 23:52 
AnswerRe: Optimize this code Pin
Daniel Grunwald6-Feb-09 1:37
Daniel Grunwald6-Feb-09 1:37 
AnswerRe: Optimize this code Pin
DaveyM696-Feb-09 2:17
professionalDaveyM696-Feb-09 2:17 
AnswerRe: Optimize this code Pin
Ben Fair6-Feb-09 2:46
Ben Fair6-Feb-09 2:46 
AnswerRe: Optimize this code Pin
Ennis Ray Lynch, Jr.6-Feb-09 2:54
Ennis Ray Lynch, Jr.6-Feb-09 2:54 
AnswerRe: Optimize this code [modified] Pin
DaveyM696-Feb-09 3:33
professionalDaveyM696-Feb-09 3:33 
QuestionCombobox Selection in Gridview for Windows Application Pin
pavanip5-Feb-09 19:57
pavanip5-Feb-09 19:57 
Questionhow to update two different tables of a datagrid using a single query Pin
jayamksriram5-Feb-09 19:22
jayamksriram5-Feb-09 19:22 
AnswerRe: how to update two different tables of a datagrid using a single query Pin
Vimalsoft(Pty) Ltd5-Feb-09 20:21
professionalVimalsoft(Pty) Ltd5-Feb-09 20:21 
AnswerRe: how to update two different tables of a datagrid using a single query Pin
tasumisra5-Feb-09 21:20
tasumisra5-Feb-09 21:20 
Questionsql error while running an exe of a c# windows application Pin
sandhya145-Feb-09 18:46
sandhya145-Feb-09 18:46 
AnswerRe: sql error while running an exe of a c# windows application Pin
Vimalsoft(Pty) Ltd5-Feb-09 20:29
professionalVimalsoft(Pty) Ltd5-Feb-09 20:29 
GeneralRe: sql error while running an exe of a c# windows application Pin
sandhya145-Feb-09 22:25
sandhya145-Feb-09 22:25 
GeneralRe: sql error while running an exe of a c# windows application Pin
Vimalsoft(Pty) Ltd5-Feb-09 23:16
professionalVimalsoft(Pty) Ltd5-Feb-09 23:16 
GeneralRe: sql error while running an exe of a c# windows application Pin
sandhya145-Feb-09 23:32
sandhya145-Feb-09 23:32 

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.