.Net assembly referenced in C# component compiled in VS- does not update variable changes

I have succesfully created a .net assembly in Matlab ,referenced and compiled in Visual Studio in a C# component. The component execute correctly inGrasshopper, however it doesn´t update the input variables when they are changed.
In order to have the component execute calculation with the updated variables values I have to close both grasshopper (grasshopper unload plugin) and Rhino
Do you have any hint on where the problem might be?
I have to have the issue solved by tomorrow, therefore I´d really appreciate any help on the issue as soon as possible.
Best regards,
Dario

HI all,
please close post, the issue is now solved