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

C#

 
AnswerRe: Checkbox & CheckedChanged event... really? Pin
Luc Pattyn22-Dec-09 15:22
sitebuilderLuc Pattyn22-Dec-09 15:22 
GeneralRe: Checkbox & CheckedChanged event... really? Pin
BDJones23-Dec-09 4:33
BDJones23-Dec-09 4:33 
AnswerRe: Checkbox & CheckedChanged event... really? Pin
J4amieC22-Dec-09 21:38
J4amieC22-Dec-09 21:38 
GeneralRe: Checkbox & CheckedChanged event... really? Pin
BDJones23-Dec-09 4:32
BDJones23-Dec-09 4:32 
QuestionRe: Checkbox & CheckedChanged event... really? Pin
BDJones23-Dec-09 5:25
BDJones23-Dec-09 5:25 
QuestionAdd Object to RichTextBox Pin
dataminers22-Dec-09 13:04
dataminers22-Dec-09 13:04 
AnswerRe: Add Object to RichTextBox Pin
Eddy Vluggen22-Dec-09 13:36
professionalEddy Vluggen22-Dec-09 13:36 
QuestionVisual Studio doesn't detect invalid parameter type errors? Pin
Xargo22-Dec-09 12:07
Xargo22-Dec-09 12:07 
I've been working with Visual Studio as hobbyist for a few years, but I only discovered this today. The way I found out was by moving some methods to another class. One of the methods used a Point class (of the System.Drawing namespace), but I didn't add a using-directive for that namespace. Then when I wanted to pass an instance of the Point class to that method from another class (which did have the directive to System.Drawing), it told me I was passing the wrong type.

That's when I discovered I forgot the using-directive to System.Drawing in the codefile of the method that also used the Point class. However, Visual Studio never warned me for that. Although the type I defined for that parameter was completely non-existing, it didn't mark it. Even if I said the parameter should be of type "sldhfsdf", which didn't exist at all (no directive to a potential namespace could have solved that), it still didn't mention anything, and acted as if it was an existing type. I could even use the parameter in the method, and it would propose it in the IntelliSense list.

Only I try to compile, it does return an error.

To clarify, here's an example that seems to be alright to Visual Studio's error checking.

public class Test
{
    public void MyMethod(abcabc var1)
    {
        var1 = null;
    }
}


While writing this piece of code, Visual Studio won't tell me this is wrong. The only way to find out is by compiling, or calling the method somewhere so it would tell me I'm either passing an unexisting or invalid variable.

Both Visual Studio 2008 and 2005 seem to do this. Could anyone explain me why this is the case?
AnswerRe: Visual Studio doesn't detect invalid parameter type errors? Pin
#realJSOP23-Dec-09 0:30
professional#realJSOP23-Dec-09 0:30 
GeneralRe: Visual Studio doesn't detect invalid parameter type errors? Pin
Xargo23-Dec-09 2:50
Xargo23-Dec-09 2:50 
GeneralRe: Visual Studio doesn't detect invalid parameter type errors? Pin
#realJSOP23-Dec-09 8:16
professional#realJSOP23-Dec-09 8:16 
GeneralRe: Visual Studio doesn't detect invalid parameter type errors? Pin
Xargo25-Dec-09 4:44
Xargo25-Dec-09 4:44 
QuestionCapicom publish error Pin
BDJones22-Dec-09 10:45
BDJones22-Dec-09 10:45 
QuestionHost ComboBox In DataGridView Pin
Kevin Marois22-Dec-09 10:38
professionalKevin Marois22-Dec-09 10:38 
AnswerRe: Host ComboBox In DataGridView Pin
Md. Marufuzzaman22-Dec-09 10:57
professionalMd. Marufuzzaman22-Dec-09 10:57 
GeneralRe: Host ComboBox In DataGridView Pin
Kevin Marois22-Dec-09 11:10
professionalKevin Marois22-Dec-09 11:10 
Questioninsert data problem Pin
dr_move22-Dec-09 10:38
professionaldr_move22-Dec-09 10:38 
AnswerRe: insert data problem Pin
Md. Marufuzzaman22-Dec-09 11:03
professionalMd. Marufuzzaman22-Dec-09 11:03 
Questionis there any binary to decimal convertor class Pin
hotthoughtguy22-Dec-09 10:04
hotthoughtguy22-Dec-09 10:04 
AnswerRe: is there any binary to decimal convertor class Pin
Luc Pattyn22-Dec-09 10:16
sitebuilderLuc Pattyn22-Dec-09 10:16 
GeneralRe: is there any binary to decimal convertor class Pin
hotthoughtguy22-Dec-09 10:18
hotthoughtguy22-Dec-09 10:18 
GeneralRe: is there any binary to decimal convertor class Pin
Luc Pattyn22-Dec-09 10:27
sitebuilderLuc Pattyn22-Dec-09 10:27 
GeneralRe: is there any binary to decimal convertor class Pin
#realJSOP22-Dec-09 10:47
professional#realJSOP22-Dec-09 10:47 
AnswerRe: is there any binary to decimal convertor class Pin
DaveyM6926-Dec-09 16:09
professionalDaveyM6926-Dec-09 16:09 
GeneralRe: is there any binary to decimal convertor class Pin
hotthoughtguy26-Dec-09 22:43
hotthoughtguy26-Dec-09 22:43 

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.