Click here to Skip to main content
12,455,442 members (58,467 online)
   

C#

 
AnswerRe: convert.ToInt32 Pin
dotnetmember6-May-09 19:54
memberdotnetmember6-May-09 19:54 
GeneralRe: convert.ToInt32 Pin
battulga_dddddd6-May-09 20:42
memberbattulga_dddddd6-May-09 20:42 
AnswerRe: convert.ToInt32 Pin
Spunky Coder6-May-09 19:55
memberSpunky Coder6-May-09 19:55 
AnswerRe: convert.ToInt32 Pin
tolw6-May-09 19:58
membertolw6-May-09 19:58 
GeneralRe: convert.ToInt32 Pin
yueru6-May-09 21:20
memberyueru6-May-09 21:20 
GeneralRe: convert.ToInt32 Pin
Guffa6-May-09 21:47
mvpGuffa6-May-09 21:47 
GeneralRe: convert.ToInt32 Pin
yueru6-May-09 22:05
memberyueru6-May-09 22:05 
GeneralRe: convert.ToInt32 Pin
Guffa7-May-09 0:49
mvpGuffa7-May-09 0:49 
I while back I wrote this method that you can use to replace Int32.Parse, and that is about ten times faster. That could help to speed up it a bit.

public static int ParseInt32(string text) {
	long value = 0;
	long sign = 1;
	bool first = true;
	foreach (char c in text) {
		if (c >= '0' && c <= '9') {
			value = value * 10 + c - '0';
		} else if (c == '-' && first) {
			sign = -1;
		} else {
			throw new FormatException();
		}
		first = false;
	}
	value *= sign;
	if (value < int.MinValue || value > int.MaxValue) throw new OverflowException();
	return (int)value;
}


Despite everything, the person most likely to be fooling you next is yourself.

Questioncatch an object returned by java webservice in c# application. Pin
prasadbuddhika6-May-09 17:39
memberprasadbuddhika6-May-09 17:39 
AnswerRe: catch an object returned by java webservice in c# application. Pin
Spunky Coder6-May-09 20:00
memberSpunky Coder6-May-09 20:00 
QuestionBackup Program Pin
nsimbu6-May-09 14:08
membernsimbu6-May-09 14:08 
QuestionListView Pin
al3xutzu006-May-09 12:26
memberal3xutzu006-May-09 12:26 
AnswerRe: ListView Pin
Henry Minute6-May-09 13:37
memberHenry Minute6-May-09 13:37 
AnswerRe: ListView Pin
Roberto Ho6-May-09 13:50
memberRoberto Ho6-May-09 13:50 
AnswerRe: ListView Pin
nsimbu6-May-09 13:51
membernsimbu6-May-09 13:51 
QuestionConvert .Net datatype to Mysql datatype Pin
student19886-May-09 12:14
memberstudent19886-May-09 12:14 
AnswerRe: Convert .Net datatype to Mysql datatype Pin
Colin Angus Mackay6-May-09 12:21
mvpColin Angus Mackay6-May-09 12:21 
GeneralRe: Convert .Net datatype to Mysql datatype Pin
student19886-May-09 12:37
memberstudent19886-May-09 12:37 
GeneralRe: Convert .Net datatype to Mysql datatype Pin
Colin Angus Mackay6-May-09 12:47
mvpColin Angus Mackay6-May-09 12:47 
GeneralRe: Convert .Net datatype to Mysql datatype Pin
student19886-May-09 13:01
memberstudent19886-May-09 13:01 
GeneralRe: Convert .Net datatype to Mysql datatype Pin
Luc Pattyn6-May-09 13:09
mvpLuc Pattyn6-May-09 13:09 
GeneralRe: Convert .Net datatype to Mysql datatype Pin
student19886-May-09 13:26
memberstudent19886-May-09 13:26 
GeneralRe: Convert .Net datatype to Mysql datatype Pin
Luc Pattyn6-May-09 13:58
mvpLuc Pattyn6-May-09 13:58 
QuestionGateway port forwarding Pin
evangile6-May-09 11:47
memberevangile6-May-09 11:47 
AnswerRe: Gateway port forwarding Pin
harold aptroot6-May-09 11:59
memberharold aptroot6-May-09 11:59 

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.


Advertise | Privacy | Mobile
Web02 | 2.8.160826.1 | Last Updated 30 Aug 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid