Click here to Skip to main content
15,911,896 members
Home / Discussions / C#
   

C#

 
GeneralRe: Do I need to Dispose LINQ To SQL Data Context ? Pin
Not Active1-Apr-10 8:24
mentorNot Active1-Apr-10 8:24 
QuestionSelecting everything with CTRL+A Pin
teknolog1231-Apr-10 0:55
teknolog1231-Apr-10 0:55 
AnswerRe: Selecting everything with CTRL+A Pin
Mohammad Elsheimy1-Apr-10 1:14
Mohammad Elsheimy1-Apr-10 1:14 
AnswerRe: Selecting everything with CTRL+A Pin
Khaniya1-Apr-10 1:32
professionalKhaniya1-Apr-10 1:32 
GeneralRe: Selecting everything with CTRL+A Pin
teknolog1231-Apr-10 1:57
teknolog1231-Apr-10 1:57 
AnswerRe: Selecting everything with CTRL+A Pin
teknolog1231-Apr-10 1:52
teknolog1231-Apr-10 1:52 
GeneralRe: Selecting everything with CTRL+A Pin
Khaniya1-Apr-10 2:52
professionalKhaniya1-Apr-10 2:52 
QuestionDifferent number of overloaded constructors for same class in different computers [modified] Pin
free young1-Apr-10 0:31
free young1-Apr-10 0:31 
Hello,
I have strange problem. In one of my project I used the "ParameterCollection" class to pass a number of SQL Command parameter to a method. In the first system I used like
ParameterCollection coll1 = new ParameterCollection();<br />
coll1.Add(new Parameter("categoryName", DbType.String, categoryName)); 


It works fine, but when I try the same code in a second computer it generates an error

"The best overloaded method match for 'System.Web.UI.WebControls.Parameter.Parameter(string,System.TypeCode,
string)' has some invalid arguments"

This confused me for a while, finally I figure out the problem when I tried the following at the new computer

ParameterCollection coll1 = new ParameterCollection();<br />
 coll1.Add(new Parameter("categoryName", TypeCode.String, categoryName));


it works fine

But finally I got amazed when I saw the number of overloaded constructors in two systems are different.
In the first system it has 6 overload constructors for "Parameter" class(two of which support DbType as parameter ) and in second system it has only 4 overload methods(no DbType support).
In both system we used Visual Studio Express 2005 with .net 2.0 framework, but the only difference is the first system installed with Visual Studio 2008. will it affect ?
modified on Thursday, April 1, 2010 7:04 AM

AnswerRe: Different number of overloaded constructors for same class in different computers Pin
Tej Aj1-Apr-10 1:36
Tej Aj1-Apr-10 1:36 
GeneralRe: Different number of overloaded constructors for same class in different computers Pin
free young1-Apr-10 18:21
free young1-Apr-10 18:21 
AnswerRe: Different number of overloaded constructors for same class in different computers Pin
PIEBALDconsult1-Apr-10 3:44
mvePIEBALDconsult1-Apr-10 3:44 
GeneralRe: Different number of overloaded constructors for same class in different computers Pin
free young1-Apr-10 18:25
free young1-Apr-10 18:25 
QuestionSimple Passing of Values Pin
Steve-Co31-Mar-10 23:56
Steve-Co31-Mar-10 23:56 
AnswerRe: Simple Passing of Values Pin
Khaniya1-Apr-10 0:05
professionalKhaniya1-Apr-10 0:05 
GeneralRe: Simple Passing of Values Pin
dan!sh 1-Apr-10 0:13
professional dan!sh 1-Apr-10 0:13 
AnswerRe: Simple Passing of Values Pin
dan!sh 1-Apr-10 0:10
professional dan!sh 1-Apr-10 0:10 
GeneralRe: Simple Passing of Values Pin
Steve-Co1-Apr-10 0:57
Steve-Co1-Apr-10 0:57 
GeneralRe: Simple Passing of Values Pin
dan!sh 1-Apr-10 3:14
professional dan!sh 1-Apr-10 3:14 
AnswerRe: Simple Passing of Values Pin
#realJSOP1-Apr-10 2:06
professional#realJSOP1-Apr-10 2:06 
AnswerRe: Simple Passing of Values Pin
PIEBALDconsult1-Apr-10 3:47
mvePIEBALDconsult1-Apr-10 3:47 
AnswerRe: Simple Passing of Values Pin
Steve-Co1-Apr-10 4:44
Steve-Co1-Apr-10 4:44 
QuestionFind the best sort algorithm Pin
ndkit31-Mar-10 20:39
ndkit31-Mar-10 20:39 
AnswerRe: Find the best sort algorithm Pin
Alex Manolescu31-Mar-10 21:32
Alex Manolescu31-Mar-10 21:32 
GeneralRe: Find the best sort algorithm Pin
ndkit31-Mar-10 21:42
ndkit31-Mar-10 21:42 
GeneralRe: Find the best sort algorithm Pin
Alex Manolescu1-Apr-10 0:34
Alex Manolescu1-Apr-10 0:34 

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.