Guest User

Untitled

a guest
Aug 17th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. How to use C# interface properly?
  2. IBattleNetSettings MyInterface;
  3. MyInterface.Username = "MyUsername";
  4. BattleNetClient cs = new BattleNetClient(MyInterface);
  5.  
  6. IBattleNetSettings settings = new BattleNetSettings();
  7.  
  8. public class BattleNetSettings : IBattleNetSettings
  9. {
  10. public string Username { get; set; }
  11. // etc...
  12. }
  13.  
  14. IBattleNetSettings MyInterface = new BattleNetSettings();
  15. MyInterface.Username = "MyUsername";
  16. BattleNetClient cs = new BattleNetClient(MyInterface);
Add Comment
Please, Sign In to add comment