I wonder if there is a way to restrict invoke call to a function? Let me make it clear.
[Assembly:a1]
Class A
{
function Af();
}
[Assembly:a2]
Class B
{
function Bf(){
//load Assembly a1
//InvokeMember to Af
}
}
After compilation I will have 2 assemblies. Now if I distribute to client, anyone can copy assembly 1 and invoke Af(). this function is returning setting.xml file after decrypting. I want to stop access to my function from third party. Is there any way? any help is appreciated.
Thanks.