Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7642783
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T09:16:38+00:00 2026-05-31T09:16:38+00:00

My code is returning a blank array of PropertyInfo PropertyInfo[] classProperties = typeof(Processor).GetProperties(); All

  • 0

My code is returning a blank array of PropertyInfo

PropertyInfo[] classProperties = typeof(Processor).GetProperties();

All properties in this class are public.
Using .NET 2.0 Framework.

I have also tried using an instance declared earlier in my code:

PropertyInfo[] classProperties = Computer.Processor[0].GetType().GetProperties();

And I have tried using bindings such as Default, Instance and Public.

Any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T09:16:39+00:00Added an answer on May 31, 2026 at 9:16 am

    The parameterless form will return public properties. So there are 2 likely options:

    • they are not properties (but instead, fields)
    • they are not public

    A public property is something a: with the public modifier, and b: with a get or set accessor, for example either of:

    public int Foo {get;set;} // automatically implemented property
    public string bar;
    public string Bar { // manually implemented property
        get { return bar; }
        set { bar = value; }
    }
    

    Note also that interface-bound properties that are implemented as explicit interface implementation will only be reflected if you query against the interface, not the class; so the following will not show unless you start from typeof(ISomeInterface):

    string ISomeInterface.Bar { get { return someValue; } } 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using CF 7 and this code is not returning any files: <cfset fileLocation
This Code: Something = new Guid() is returning: 00000000-0000-0000-0000-000000000000 all the time and I
Guys this code is returning false in a blank page after submit.What is the
I am new to programming.I have seen this code.returning a derived class object to
I have some code where I'm returning an array of objects. Here's a simplified
My var_dump is returning this: array(5) { [radioinput]=> string(12) sidebar-left [option1]=> int(0) [sometext]=> string(0)
Anyone know why this keeps returning a blank image? I found this function here
I am using jQuery and have server code returning the following values 0:SELECT ONE;1:VALUE1;2:VALUE2
For some reason this code is returning NULL when trying to get a categories
My cUrl call is returning HTML code like: &quot;Some stuff.&quot; and I'd like to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.