Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6790463
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:43:42+00:00 2026-05-26T17:43:42+00:00

I just installed the free version of the .NET Visual Web Developer 2010 IDE

  • 0

I just installed the free version of the .NET Visual Web Developer 2010 IDE along with version 3 of the ASP.NET MVC framework. I’m new enough to C#, .NET, ASP.NET’s MVC Framework that I’m a little confused by the base controller class that was generated for me, and what’s a C# language feature vs. possible syntactic sugar being provided by the framework

Namespace MvcApplication1
    Public Class Default1Controller
        Inherits System.Web.Mvc.Controller

        '
        ' GET: /Default1

        Function Index() As ActionResult
            Return View()
        End Function

    End Class
End Namespace

Specifically,

  1. In the tutorials I’ve found online, a : is used to indicate inheritance, but here it’s actually the word Inherits. Does Inherits confer any addition context/features, or is it just another way of saying :?

  2. The generated Index method has no return type, or access modifiers. I was under the impression that these were a required part of the method signature in C#. Is this an incorrect assumption? If so, what is the default return type?

  3. Also related to the Index method is the trailing as ActionResult, which sort of looks like a return type for the method signature, but is obviously something else. What does this do?

  4. Are the above differences in the language something that C# is providing me, or is this syntax simplification something that the ASP.NET MVC framework is giving me via meta-programming?

Full answers are great, but a pointer towards a tutorial or reference that doesn’t assume knowledge of the ASP.NET ecosystem and would get ac experienced programming

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T17:43:42+00:00Added an answer on May 26, 2026 at 5:43 pm

    It looks like you selected the wrong language if you wanted to use C#. You have posted Visual Basic code.

    1. Because this is VB code, it is Inherits. The C# equivalent to this is the colon (:)
    2. Again, this is another VB syntax confusion point. Here would be the equivalent C# method:

    public ActionResult Index()
    {
    return View();
    }

    1. ActionResult is the return type (or a class that inherits ActionResult) that the method will return.
    2. Your confusion is rooted from this being the wrong code language. But yes, if you don’t know MVC ins-and-outs even C# source code will confuse you a bit. I highly…HIGHLY recommend you check out the ASP.NET MVC Music Store Tutorial. It gave me a great start on learning and understanding the structure of ASP.NET MVC applications and the development behind them.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just installed 'Visual C# 2008 Express Edition' and 'Visual Web Developer 2008 Express
Just installed and migrated a 2008 solution on Vista ultimate 64 and .net 4.0.
I have just installed the Platform SDK for Windows Server 2008 and .NET 3.5
I'm new with cmake ,just installed it and following this article: http://www.cs.swarthmore.edu/~adanner/tips/cmake.php D:\Works\c\cmake\build>cmake ..
I am looking for different techniques/tools you use to deploy an ASP.NET web application
Because I need a free and reliable XML editor, I just installed the Netbeans
We're looking for a cheap-to-free off the shelf ASP.NET catalogue application, that will meet
I just released a free version of a paid app store application, and I
Just installed the latest SDK for iPhone 2.1. When I go to File ->
Just installed AnkhSVN and I see the equivalent of svn up but I'd prefer

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.