---
title: "Can we divide the class definition"  
description: "Can we divide the class definition"  
author: "yash Singh"  
published: 2010-11-10  
updated: 2010-11-11  
canonical: https://www.mindstick.com/forum/94/can-we-divide-the-class-definition  
category: "asp.net"  
tags: ["asp.net"]  
reading_time: 1 minute  

---

# Can we divide the class definition

How we can divide the [class](https://www.mindstick.com/blog/165/generic-class-in-c-sharp) [definition](https://yourviews.mindstick.com/view/70598/false-furore-over-the-leadership-definition-statement-of-army-chief-bipin-rawat) into [multiple files](https://www.mindstick.com/forum/33990/attach-multiple-files-gridview-row-in-knockout-js)

## Replies

### Reply by Pushpendra Singh

It is possible to split the definition of a class in two or more source [files](https://www.mindstick.com/articles/23302/the-importance-and-advantage-of-keeping-your-important-files-on-the-cloud). Each source file contains a section of the class definition, and all parts are combined when the application is compiled. There are several situations when splitting a class definition is desirable:\
\
When working on large projects, spreading a class over separate files allows [multiple](https://www.mindstick.com/blog/12797/iowa-is-expected-to-see-heavy-growth-in-multiple-sectors) programmers to work on it simultaneously.\
When working with automatically generated source, code can be added to the class without having to recreate the source file.


---

Original Source: https://www.mindstick.com/forum/94/can-we-divide-the-class-definition

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
