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

  • Home
  • SEARCH
  • 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 113403
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T02:41:48+00:00 2026-05-11T02:41:48+00:00

I have classes that store data, and methods to go get data for individual

  • 0

I have classes that store data, and methods to go get data for individual loans.

I have code that walks properties and pulls the data back, but according to the MSDN coding guidelines properties are just supposed to get data, not do anything. My properties actually move to a screen on a mainframe and scrape data. So when I am mousing over a property or moving my mouse over the code in the debugger, sometimes it triggers, changes what screen in the mainframe I’m in. So I’d like to change my reflection walker to also be able to pull back function results and change the unbuffered data to functions.

Public Function GetAllReadableProperties(ByVal obj As Object) As String         Dim result As New System.Text.StringBuilder(300)          For Each Item As System.Reflection.PropertyInfo In obj.GetType.GetProperties()             With Item                 If .CanRead Then                     result.Append(.Name + ':')                     If .GetIndexParameters().Length = 0 Then                         Dim value As Object = .GetValue(obj, Nothing)                         If value Is Nothing Then                             result.AppendLine('<Nothing>')                         Else                             result.AppendLine(value.ToString)                         End If                     Else                         result.AppendLine('Indexed')                     End If                 End If             End With         Next         Return result.ToString     End Function 

How would I walk the methods also? What would the easiest way to tag certain functions for default walking, or default don’t walk? Custom attributes?

Would this code work at all for a structure passed in instead of a class?

I’d like to code this into building a datatable for datagridview display when I get farther along.

  • 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. 2026-05-11T02:41:49+00:00Added an answer on May 11, 2026 at 2:41 am

    Re mousing over, perhaps [DebuggerBrowsable(DebuggerBrowsableState.Never)]?

    However, perhaps a better approach is to follow the guidelines, and make the properties idempotent, with methods to populate them? i.e. call the ‘populate’ method (telling it what you need to know) before passing the object to the grid.

    For a struct… well, a struct should (except for very specific reasons) always be immutable. So a lazy-loading struct is pretty much an oxymoron. You would probably run the risk of losing track of what is going on here… short version: make it a class (quite possibly one that is IDisposable, and possibly has a finalizer).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 112k
  • Answers 112k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer I'm coding similar thing. My approach include..... Not using dismissModalViewControllerAnimated… May 11, 2026 at 9:55 pm
  • Editorial Team
    Editorial Team added an answer IMHO it is crucial to use a identity column as… May 11, 2026 at 9:55 pm
  • Editorial Team
    Editorial Team added an answer ReinstallJava takes a JVMArguments option. You can use it to… May 11, 2026 at 9:55 pm

Related Questions

I was working on some code recently and came across a method that had
For a database assignment I have to model a system for a school. Part
I have a couple of classes that want to pass each other some information
I have looked over the Repository pattern and I recognized some ideas that I

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.