---
title: "Explain requirements and advantages of partial class."  
description: "Explain requirements and advantages of partial class."  
author: "Anonymous User"  
published: 2020-01-22  
updated: 2020-01-22  
canonical: https://www.mindstick.com/forum/155718/explain-requirements-and-advantages-of-partial-class  
category: "asp.net mvc"  
tags: ["asp.net mvc"]  
reading_time: 1 minute  

---

# Explain requirements and advantages of partial class.

Give me [detailed explanation](https://www.mindstick.com/forum/155584/give-a-detailed-explanation-of-delegates-in-c-sharp) of [requirement](https://yourviews.mindstick.com/view/85169/becoming-an-influencer-requirement-of-skills-and-knowledge) and [advantages](https://www.mindstick.com/articles/12841/5-advantages-of-customer-portal-you-didn-t-know-about) of [partial class](https://www.mindstick.com/forum/155717/define-partial-class-in-mvc).

## Replies

### Reply by Nishi Tiwari

## [Partial](https://www.mindstick.com/blog/78/partial-class-in-dot-net) Class Requirements:

- All the partial class definitions must be within the [**same assembly and namespace.**](https://www.mindstick.com/forum/155583/what-are-namespaces-in-c-sharp)
- All the parts of class must have the same accessibility like public or private, etc.
- If any part of the class is declared an abstract, sealed or base type then the whole class is declared of the same type.
- Different parts may have different base types and so the final class will inherit all the base types.
- The Partial modifier must be only appear immediately before the keywords class, struct, or interface.
- Nested partial types are also allowed.

## Advantages of Partial Class

- Multiple developers can easily work simultaneously with a single class in a separate files.
- When working with automatically generated source, code may be added to the class without having to recreate a source file. For example, Visual Studio separates HTML code for the UI and server side code into two separate and different files: .aspx and .cs files.

![Explain requirements and advantages of partial class.](https://www.mindstick.com/mindstickforums/a52c1604-c06f-4e94-827b-a20d9aaceef2/images/3c855016-41f6-4f08-b35f-de42a9cc8b21.jpeg)


---

Original Source: https://www.mindstick.com/forum/155718/explain-requirements-and-advantages-of-partial-class

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
