Partial Types and Methods - CSharp Custom Type

CSharp examples for Custom Type:Partial

Introduction

Partial types allow a type definition to be split-typically across multiple files.

// PaymentFormGen.cs - auto-generated
partial class PaymentForm { ... }

// PaymentForm.cs - hand-authored
partial class PaymentForm { ... }

Each participant must have the partial declaration; the following is illegal:

partial class PaymentForm {}
class PaymentForm {}

Related Tutorials