14.11.2019 Views

BEIJER-Slides-4-Training HMI iX Scripting [en]

BEIJER - HMI iX Slide da Formação Técnica iX - Script C# [en] Da empresa BRESIMAR AUTOMAÇÃO (Aveiro / Portugal) Autoria: BEIJER ELECTRONICS

BEIJER - HMI iX
Slide da Formação Técnica iX - Script C# [en]
Da empresa BRESIMAR AUTOMAÇÃO (Aveiro / Portugal)
Autoria: BEIJER ELECTRONICS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Variables<br />

String handling - Effici<strong>en</strong>cy<br />

• A string is an immutable sequ<strong>en</strong>tial collection of Unicode characters, typically used to<br />

repres<strong>en</strong>t text. A String is called immutable because its value cannot be modified once it has<br />

be<strong>en</strong> created.<br />

• Methods that appear to modify a String actually return a new String containing the<br />

modification. If it is necessary to modify the actual cont<strong>en</strong>ts of a string-like object,<br />

System.Text.StringBuilder class is more effici<strong>en</strong>t. This class allows string modifications to be<br />

done without the overhead of object creation and garbage collection.<br />

Approximately 24 seconds to execute<br />

Approximately 0,016 seconds to execute

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!