Reputation:
I define a method in a class and call it in another class. It works fine.
But, if I select the method and press F12
, Visual Studio will find the method and show me the statements code automatically.
I have tried it with the method: Console.WriteLine();
. I select WriteLine
and press F12
. It redirects me to:
namespace System
{
public static class Console
{
public static void WriteLine();
}
}
All of the statements code of WriteLine()
are hidden (sorry, hidden
means that I don't see it).
I want to write a new method like WriteLine()
:
public int Add(int a, int b);
But I don't know where is the place I can implement method Add(int a, int b)
(in another class).
Can you teach me?
Upvotes: 0
Views: 106
Reputation: 1562
Only the compiled (dll) methods can't be shown. If you're importing a project with code source then you'll see the code (that's the purpose)
Upvotes: 1