Can someone correct my code? I want to create an interface object and use it methods but Im stuck with this code..
Visual Studio Error prompt : Use of unassigned local variable 'MyInterface'
IBattleNetSettings MyInterface;
MyInterface.Username = "MyUsername";
BattleNetClient cs = new BattleNetClient(MyInterface);
btw , if you want the interface class here's the code: IBattleNetSettings
and for the BattleNetClient class : BattleNetClient <-- Take a look at this code.Its constructor requires an instance of IBattleNetSettings interface.
I just want to create an instance of BattleNetClient class but Im stucked since It requires an instance from IBattleNetSettings and I dont know how to do it.
How can I create instance of BattleNetClient class?
Thanks in Advance : )