C# Beginner to advanced - Lesson 42 - Rules for creating and using partial methods
43 بار بازدید -
6 سال پیش
-
Rules for creating and using
Rules for creating and using partial methods
Partial Method implementation is optional. If we don’t provide the implementation the compiler removes the signature and all calls to the method.
Partial Methods are private by default and it is a compile time error to include any access modifiers, including private.
If we include declaration and implementation at the same time for a partial method, it gives a compile time error
A partial method return type must be void. Include any other return type is a compil
6 سال پیش
در تاریخ 1397/03/11 منتشر شده
است.
43
بـار بازدید شده