Partial type : Partial Type : Data Types C# Source Code


Custom Search

C# Source Code » Data Types » Partial Type »

 

Partial type








    
 

using System;
using System.Collections.Generic;
using System.Text;

namespace PartialTypes
{
    // MyClass_Private.cs
    namespace PartialTypes
    {
        public partial class MyClass
        {
            // Private field data.
            private string someStringData;

            // All private helper members.
            public static void SomeStaticHelper() { }
        }
    }
}


using System;
using System.Collections.Generic;
using System.Text;

namespace PartialTypes
{
    // MyClass_Public.cs
    namespace PartialTypes
    {
        public partial class MyClass
        {
            // Constructors.
            public MyClass() { }

            // All public members.
            public void MemberA() { }
            public void MemberB() { }
        }
    }
}


using System;
using System.Collections.Generic;
using System.Text;

namespace PartialTypes
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.ReadLine();
        }
    }
}

 
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo Data Types
» Partial Type