EloiStree / HelloSharpForUnity3D

Here we are going to check all the basic need to work in Unity3D with C#
0 stars 0 forks source link

Keyword: partial #397

Open EloiStree opened 2 months ago

EloiStree commented 2 months ago

https://learn.microsoft.com/fr-fr/dotnet/csharp/language-reference/keywords/partial-type

namespace PC
{
    partial class A
    {
        int num = 0;
        void MethodA() { }
        partial void MethodC();
    }
    partial class A
    {
        void MethodB() { }
        partial void MethodC() { }
    }
}