Advertisement
Guest User

Untitled

a guest
Jul 21st, 2019
491
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.14 KB | None | 0 0
  1. private static void DoSomething(this MyCustomDialog dialog) {
  2.     // And `this` would refer to `dialog`
  3.     this.label1.Text = "Hello, World!";
  4. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement