Articles → CSHARP → Internal Class In C#

Internal Class In C#






Purpose





Example




  1. 2 class library projects
  2. 1 console application.


namespace Another_Lib { 
    public class LIB1 {}
}




namespace Internal_demo { 
    internal class LIB2 {
        public LIB2() {
 
                }
    }
}





Using Dlls In Console Application




using Another_Lib; 
using Internal_demo;
namespace Consumer {
    class Program {
        static void Main(string[] args) {
            LIB1 l1 = new LIB1();
            LIB2 l2 = new LIB2();
        }
    }
}







Posted By  -  Karan Gupta
 
Posted On  -  Monday, December 18, 2017

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250