Is there any way to differentiate% w / o% w / o% w / o in the code below,% w / o% or another method?
var v1 = new MinhaClasse(); IMinhaClasse v2 = new MinhaClasse();
I want to execute a method only if the
v1 is "instantiated" from
v2 , in the above example it would only be possible to call a function if passed as parameter
Another way that would solve the problem would be to prevent a method from having input parameter
variável not accepting