Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 298
  • Last Modified:

Hint about method arguments in VS 2005

Hello :)

I have a class with constructor with many arguments.

I create new instance of this class, how can I make VS 2005 to give me a hint about arguments used by class I am currently creating?

thx

panJacek
0
panJacek
Asked:
panJacek
  • 4
  • 3
  • 2
  • +1
2 Solutions
 
Meir RivkinFull stack Software EngineerCommented:
do u mean intellisense?
which IDE ru using?
0
 
Fernando SotoCommented:
As you are typing IntellaSense should be displaying information about what it is expecting next such as parameter name and type.
0
 
Fernando SotoCommented:
If IntelliSense is not displaying go to the main menu Tools->Options... and when the Options dialog is displayed look for IntelliSense as shown in the image below, VS 2008, but it should be some what the same in other versions.
ScreenShot003.png
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
TribmosCommented:
At the method header start typing
///
This should fill out a huge block of text.  See example below
/// <summary>
/// Adds an environment to the handler, throws exception if no more environments can be added
/// </summary>
/// <param name="environmentName">the name of the environment</param>
/// <param name="envType">enumerator for the type of environment</param>
public static int addEnvironment(string environmentName, environmentType envType)
{ code! }

Open in new window

0
 
panJacekAuthor Commented:
The problem appears when I have wrong set of parameters typed for selected method.

I get red underscored in red and no (known to me) way to get the proper list of parameters displayed.

panJacek
0
 
panJacekAuthor Commented:
... I get LINE underscored in red and no (known to me) way to get the proper list of parameters displayed.
0
 
Fernando SotoCommented:
To your statement, "I get LINE underscored in red", The line is incorrectly formatted. Make sure that you spelled all the variable names correct.
0
 
TribmosCommented:
Or possibly the type of variable your passing in does not match any of the possible functions.  This can happen sometimes with numerical values (listed decimal, but passing int or vice versa) You may have to do a typecast or convert on it.

Also check your scope modifiers  (public, protected, private, etc) you may have the wrong one on the function your wanting to reference.
0
 
panJacekAuthor Commented:
I know why I get red underscoring line!

The problem is that after I get it, it is not possible to get a hint about proper variable types required for selected method.
0
 
Fernando SotoCommented:
This is correct, if you have and error in the syntax then IntelliSense will not be able to correctly gives what comes next, you need to go to the first red underline and correct it before IntelliSense will work correctly.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 4
  • 3
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now