Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 480 Bytes

assign.md

File metadata and controls

19 lines (12 loc) · 480 Bytes

How to assign object references

There are two main ways to assign objects in Sharp.UI:

  • using the Assign method,
  • using a constructor parameter.

The first example uses the Assign method to assign a label object to a variable named label. This is done using the following code:

new Label().Assign(out label)

The second example uses a constructor parameter to achieve the same result. This is done using the following code:

new Label(out label)