May 2004
Intermediate to advanced
888 pages
22h 31m
English
This section shows you how to drill down further into the types defined in an assembly and how to reflect those types.
Listing 15.3 illustrates the processes of reflecting member information for types.
1: function GetDeclareString(st: System.Type): String; 2: begin 3: Result := ''; 4: if st.IsAbstract then Result := Result + 'abstract '; 5: if st.IsArray then Result := Result + 'array '; 6: if st.IsClass then Result := Result + 'class '; 7: if st.IsContextful then Result := Result + 'context '; 8: if st.IsInterface then Result := Result + 'interface '; 9: if st.IsPointer then Result := Result + 'pointer '; 10: if st.IsPrimitive then Result := Result + 'primitive '; 11: if st.IsPublic ... |
Read now
Unlock full access