Jump to content

Reflection/List methods: Difference between revisions

PascalABC.NET
(Add Ecstasy example)
(PascalABC.NET)
 
Line 884:
<pre>
bar: i24@0:8d16
</pre>
 
=={{header|PascalABC.NET}}==
<syntaxhighlight lang="delphi">
##
uses System, System.Reflection;
 
var flags := BindingFlags.Instance or BindingFlags.Static
or BindingFlags.Public or BindingFlags.DeclaredOnly;
typeof(integer).GetMethods(flags).PrintLines;
</syntaxhighlight>
{{out}}
<pre>
Int32 CompareTo(System.Object)
Int32 CompareTo(Int32)
Boolean Equals(System.Object)
Boolean Equals(Int32)
Int32 GetHashCode()
System.String ToString()
System.String ToString(System.String)
System.String ToString(System.IFormatProvider)
System.String ToString(System.String, System.IFormatProvider)
Int32 Parse(System.String)
Int32 Parse(System.String, System.Globalization.NumberStyles)
Int32 Parse(System.String, System.IFormatProvider)
Int32 Parse(System.String, System.Globalization.NumberStyles, System.IFormatProvider)
Boolean TryParse(System.String, Int32 ByRef)
Boolean TryParse(System.String, System.Globalization.NumberStyles, System.IFormatProvider, Int32 ByRef)
System.TypeCode GetTypeCode()
</pre>
 
220

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.