Search code examples
.netasp.netvisual-studiovisual-studio-2010partial-classes

Partial Class is created in new project


Whenever i open any new project in Visual Studio, a partial class is created. I need only a simple class as i need to practice OOPS concepts.

How to create a new class or modify an existing partial class?

I might sound stupid! :-)

thanks!


Solution

  • ASP.Net generates a portion of your code, allowing you to extend it via the "partial" keyword. This means that your code will get compiled into the same class as the code generated from XAML.

    As far as trying to learn OOP goes, start with a command-line project and work your way up from there. It might be easier to get going, and you'll feel like you have 100% of control over your creation.