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 7903943
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T09:52:26+00:00 2026-06-03T09:52:26+00:00

Is it possible to scan for methods with particular attributes within the assembly? I

  • 0

Is it possible to scan for methods with particular attributes within the assembly? I am currently working on Visual C++ project but even C# is fine with me. I need to find all methods within currently assmebly that have a paricular attribute Eg. [XYZ] applied to it. Any thoughts?

  • 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-06-03T09:52:28+00:00Added an answer on June 3, 2026 at 9:52 am

    I have used Microsoft Roslyn for a similar task. It should be pretty easy.

    Let me know if you need any example code.

    And take a look at this post too: http://blog.filipekberg.se/2011/10/20/using-roslyn-to-parse-c-code-files/

    Reflection can also be used for that, the GetCustomAttributes method returns all attributes defined on the given member…

    Alright, try this:

    this.GetType().GetMethods() 
    

    loop trough all the methods and GetCustomAttributes

    That should be it. Unfortunately I don’t have Visual Studio installed on my wife’s laptop 🙂

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

Sidebar

Related Questions

I am working with bluetooth sensor data and need to identify possible duplicate readings
Is it possible to perform an active wifi scan on android without using the,
My application has to connect to PC via WiFi.I need to scan and display
Is there a tool available that can scan code and check for possible null
I'm working on a project right now where I have been slowly accumulating a
Is is possible to scan a function provided as a lamba expression to figure
How is it possible to scan a uploaded file for viruses, trojans etc.? Just
Is it possible to scan multiple qr codes from a single image ? If
How would it be possible to do the following: Scan through an html page
i dont know its possible or no? i have a project in php ,

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.