Back to Questions

What is a partial method?

What do you mean by partial method and what is its use? Your Answer

  • 6/15/2013 8:26:58 AM
  • Biju
  • 2

What is a partial method?

A partial method has its signature defined in one part of a partial type, and its implementation defined in another part of the type. Partial methods enable class designers to provide method hooks, similar to event handlers, that developers may decide to implement or not. If the developer does not supply an implementation, the compiler removes the signature at compile time. The following conditions apply to partial methods:

  • Signatures in both parts of the partial type must match.

  • The method must return void.

  • No access modifiers are allowed. Partial methods are implicitly private.

More details at

tech.just4sharing.com/Pages/tech/Partial-Methods.aspx

  • 6/15/2013 8:34:52 AM
  • test

What is a partial method?

Partial method is always part of partial class, and it is always private.

  • 7/5/2013 1:30:03 AM
  • test

Back to Questions