Partial classes
Partial classes allow us to split a class in to 2 or more files.
All these parts are then combined in to single class, when the application is compiled.
The partial keyword can also be used to split a struct or an interface over two or more files
Advantages of Partial Classes:
Visual studio uses partial classes to separate, automatically generated system code from the developers code For example: When you add a WindowsForm application, two .cs files are generated
Form.cs : contains the developer code.
Form.Designer.cs : contains the system generated code. Example : declarations for the controls that you drag and drop on the windowsform
When working on large projects, spreading a class over separate files allows programmers to work it on simultaneously.
ankpro
ankpro training
Asp.net MVC
C#
C sharp
Bangalore
Rajajinagar
Selenium
Coded UI
Mobile automation testing
Mobile testing
JQuery
JavaScript
.Net
Components of the .Net framework
Hello World
Literal
Keywords
Variable
Data types
Operators
Branching
Loops
Arrays
ArrayList
Strings
String Builder
Structures
Enums
Functions
Classes
Inheritance
Polymorphism
Properties
Indexers
Events
Nested Classes
Delegates
Anonymous methods
Labda expressions
Abstract classes
Exception Handling
Linq
Interfaces
Extension methods
Anonymous types
Generics
Collections
Garbage Collection
Reflection
Attributes
Input and output statements
Type casting
Boxing and Unboxing
Var vs Dynamic vs Object