Click here to Skip to main content
12,627,681 members (34,081 online)
   

C#

 
QuestionPBX VOIP Pin
imranliaqat6-May-09 21:16
memberimranliaqat6-May-09 21:16 
JokeRe: PBX VOIP Pin
afree6-May-09 21:47
memberafree6-May-09 21:47 
QuestionUsing open office in .net Pin
tauras816-May-09 20:53
membertauras816-May-09 20:53 
AnswerRe: Using open office in .net Pin
N a v a n e e t h6-May-09 21:44
mvpN a v a n e e t h6-May-09 21:44 
AnswerRe: Using open office in .net Pin
Rajesh R Subramanian7-May-09 1:34
mvpRajesh R Subramanian7-May-09 1:34 
QuestionSolving vehicle routing problem in .NET (C#) Pin
Andisheh_K6-May-09 20:49
memberAndisheh_K6-May-09 20:49 
QuestionRe: Solving vehicle routing problem in .NET (C#) Pin
Andisheh_K9-May-09 2:39
memberAndisheh_K9-May-09 2:39 
Questionconvert.ToInt32 Pin
yueru6-May-09 19:57
memberyueru6-May-09 19:57 
AnswerRe: convert.ToInt32 Pin
dotnetmember6-May-09 20:54
memberdotnetmember6-May-09 20:54 
GeneralRe: convert.ToInt32 Pin
battulga_dddddd6-May-09 21:42
memberbattulga_dddddd6-May-09 21:42 
AnswerRe: convert.ToInt32 Pin
Spunky Coder6-May-09 20:55
memberSpunky Coder6-May-09 20:55 
AnswerRe: convert.ToInt32 Pin
tolw6-May-09 20:58
membertolw6-May-09 20:58 
GeneralRe: convert.ToInt32 Pin
yueru6-May-09 22:20
memberyueru6-May-09 22:20 
GeneralRe: convert.ToInt32 Pin
Guffa6-May-09 22:47
mvpGuffa6-May-09 22:47 
There is still room for some improvement. Wink | ;)

Instead of getting a one character string, you can get a character. You can change this:
if (line.Substring(11, 1) == "=")
to:
if (line[11] == '=')

You can use the >= operator instead of doing both > and == comparisons. You can change this:
if ((string.Compare(Lineout, "0") > 0 || string.Compare(Lineout, "0") == 0) && (string.Compare(Lineout, "9") < 0 || string.Compare(Lineout, "9") == 0))
to:
if (string.Compare(Lineout, "0") >= 0 && string.Compare(Lineout, "9") <= 0)

However, you can use a char instead of a one character string there too:
char Lineout = Line00[38];
if (Lineout >= '0' && Lineout <= '9')
or simply:
if (Char.IsDigit(Line00, 38))


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

GeneralRe: convert.ToInt32 Pin
yueru6-May-09 23:05
memberyueru6-May-09 23:05 
GeneralRe: convert.ToInt32 Pin
Guffa7-May-09 1:49
mvpGuffa7-May-09 1:49 
Questioncatch an object returned by java webservice in c# application. Pin
prasadbuddhika6-May-09 18:39
memberprasadbuddhika6-May-09 18:39 
AnswerRe: catch an object returned by java webservice in c# application. Pin
Spunky Coder6-May-09 21:00
memberSpunky Coder6-May-09 21:00 
QuestionBackup Program Pin
nsimbu6-May-09 15:08
membernsimbu6-May-09 15:08 
QuestionListView Pin
al3xutzu006-May-09 13:26
memberal3xutzu006-May-09 13:26 
AnswerRe: ListView Pin
Henry Minute6-May-09 14:37
memberHenry Minute6-May-09 14:37 
AnswerRe: ListView Pin
Roberto Ho6-May-09 14:50
memberRoberto Ho6-May-09 14:50 
AnswerRe: ListView Pin
nsimbu6-May-09 14:51
membernsimbu6-May-09 14:51 
QuestionConvert .Net datatype to Mysql datatype Pin
student19886-May-09 13:14
memberstudent19886-May-09 13:14 
AnswerRe: Convert .Net datatype to Mysql datatype Pin
Colin Angus Mackay6-May-09 13:21
mvpColin Angus Mackay6-May-09 13:21 
GeneralRe: Convert .Net datatype to Mysql datatype Pin
student19886-May-09 13:37
memberstudent19886-May-09 13:37 
GeneralRe: Convert .Net datatype to Mysql datatype Pin
Colin Angus Mackay6-May-09 13:47
mvpColin Angus Mackay6-May-09 13:47 
GeneralRe: Convert .Net datatype to Mysql datatype Pin
student19886-May-09 14:01
memberstudent19886-May-09 14:01 
GeneralRe: Convert .Net datatype to Mysql datatype Pin
Luc Pattyn6-May-09 14:09
mvpLuc Pattyn6-May-09 14:09 
GeneralRe: Convert .Net datatype to Mysql datatype Pin
student19886-May-09 14:26
memberstudent19886-May-09 14:26 
GeneralRe: Convert .Net datatype to Mysql datatype Pin
Luc Pattyn6-May-09 14:58
mvpLuc Pattyn6-May-09 14:58 
QuestionGateway port forwarding Pin
evangile6-May-09 12:47
memberevangile6-May-09 12:47 
AnswerRe: Gateway port forwarding Pin
harold aptroot6-May-09 12:59
memberharold aptroot6-May-09 12:59 
GeneralRe: Gateway port forwarding Pin
evangile6-May-09 13:05
memberevangile6-May-09 13:05 
QuestionRe: Gateway port forwarding Pin
harold aptroot6-May-09 13:10
memberharold aptroot6-May-09 13:10 
AnswerRe: Gateway port forwarding Pin
evangile6-May-09 13:17
memberevangile6-May-09 13:17 
GeneralRe: Gateway port forwarding Pin
harold aptroot6-May-09 23:08
memberharold aptroot6-May-09 23:08 
GeneralRe: Gateway port forwarding Pin
evangile7-May-09 0:05
memberevangile7-May-09 0:05 
GeneralRe: Gateway port forwarding Pin
harold aptroot7-May-09 0:36
memberharold aptroot7-May-09 0:36 
QuestionFind out if a class is initialized with reflection. Pin
belzer6-May-09 12:26
memberbelzer6-May-09 12:26 
QuestionProcess.Kill() problem Pin
Mel Feik6-May-09 11:42
memberMel Feik6-May-09 11:42 
GeneralI made a T9 Dictianary [modified] Pin
emrah19826-May-09 11:26
memberemrah19826-May-09 11:26 
GeneralRe: I made a T9 Dictianary Pin
Henry Minute6-May-09 11:32
memberHenry Minute6-May-09 11:32 
GeneralRe: I made a T9 Dictianary Pin
emrah19826-May-09 11:48
memberemrah19826-May-09 11:48 
GeneralRe: I made a T9 Dictianary Pin
led mike6-May-09 11:36
mvpled mike6-May-09 11:36 
QuestionConditional ?: Pin
Jammer6-May-09 11:18
memberJammer6-May-09 11:18 
AnswerRe: Conditional ?: Pin
ltmccaul6-May-09 11:28
memberltmccaul6-May-09 11:28 
GeneralRe: Conditional ?: Pin
Mel Feik6-May-09 11:30
memberMel Feik6-May-09 11:30 
GeneralRe: Conditional ?: Pin
Ian McCaul6-May-09 11:33
memberIan McCaul6-May-09 11:33 
AnswerRe: Conditional ?: Pin
S. Senthil Kumar6-May-09 11:30
memberS. Senthil Kumar6-May-09 11:30 

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.161205.3 | Last Updated 6 Dec 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid