4
Answers

How to call a private method from another class?

Abolfazl

Abolfazl

8y
515
1
hi
I have a public class with a private method inside this class, I want to call this private method from another class. I know I can use reflection or delegate but I should do it without using reflection or delegate.
 
  1. public class MyClass  
  2. {  
  3.      private void Method()  
  4.       {  
  5.              //method codes  
  6.       }  
  7. }  
how to call Method?
 
thanks 
 
 

Answers (4)