Delphi Language Guide Delphi for Microsoft Win32 Delphi for the Microsoft. Net framework



Yüklə 0,84 Mb.
Pdf görüntüsü
səhifə289/294
tarix02.01.2022
ölçüsü0,84 Mb.
#41395
1   ...   286   287   288   289   290   291   292   293   294
DelphiLanguageGuide

Function Results
Assembly language functions return their results as follows.
Ordinal values are returned in AL (8-bit values), AX (16-bit values), or EAX (32-bit values).
Real values are returned in ST(0) on the coprocessor's register stack. (Currency values are scaled by 10000.)
242


Pointers, including long strings, are returned in EAX.
Short strings and variants are returned in the temporary location pointed to by 
@Result
.
243


.NET Topics
This section contains information specific to programming in Delphi on the .NET platform.
244


Using .NET Custom Attributes
.NET framework assemblies are self-describing entities. They contain intermediate code that is compiled to native
machine instructions when the assembly is loaded. More than that, assemblies contain a wealth of information about
that code. The compiler emits this descriptive information, or metadata, into the assembly as it processes the source
code. In other programming environments, there is no way to access metadata once your code is compiled; the
information is lost during the compilation process. On the .NET platform, however, you have the ability to access
metadata using runtime reflection services.
The .NET framework gives you the ability to extend the metadata emitted by the compiler with your own descriptive
attributes. These customized attributes are somewhat analogous to language keywords, and are stored with the
other metadata in the assembly.
Declaring custom attributes
Using custom attributes
Custom attributes and interfaces

Yüklə 0,84 Mb.

Dostları ilə paylaş:
1   ...   286   287   288   289   290   291   292   293   294




Verilənlər bazası müəlliflik hüququ ilə müdafiə olunur ©www.azkurs.org 2024
rəhbərliyinə müraciət

gir | qeydiyyatdan keç
    Ana səhifə


yükləyin