System.UnsafeAttribute

From Appmethod Libraries
Jump to: navigation, search

System.TCustomAttributeSystem.TObjectUnsafeAttribute

Object Pascal

UnsafeAttribute = class(TCustomAttribute);

Properties

Type Visibility Source Unit Parent
class public System.pas System System

Description

Represents an attribute that can be applied to variables (members), functions and parameters.

It inherits TCustomAttribute.

To set the unsafe attribute on a function, use this syntax:

[Result: Unsafe] function ReturnUnsafe: TObject;

Warning: UnsafeAttribute should be only used outside the System unit. It is considered dangerous and its use is not recommended.

See Also