threadvars |
Top Previous Next |
What is translated > Variables > threadvars
In Delphi the keyword threadvar is used to declare variables using the thread-local storage.
threadvar x: Integer;
In C# the ThreadStatic attribute can be used:
[ThreadStatic] int x;
|
This page belongs to the Delphi2C# Documentation |
Delphi2C# home Content |