Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# get list of all class fields

// List the properties.
// Use the class you want to study instead of Form1.

PropertyInfo[] property_infos = typeof(Form1).GetProperties(
    BindingFlags.FlattenHierarchy |
    BindingFlags.Instance |
    BindingFlags.NonPublic |
    BindingFlags.Public |
    BindingFlags.Static);
Source by csharphelper.com #
 
PREVIOUS NEXT
Tagged: #list #class #fields
ADD COMMENT
Topic
Name
6+2 =