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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T02:37:03+00:00 2026-05-25T02:37:03+00:00

All methods in an assembly are marked with a one of two attributes: [Bottleneck]

  • 0

All methods in an assembly are marked with a one of two attributes: [Bottleneck] or [Caching]. [Caching] methods do some caching and they should be implemented in the clearest way, since they are called rarely. On contrary, [Bottleneck] methods are called every time the assembly is being used by a server (often enough), so they should be optimized.

Is there a way to check:
1. Every method is marked with one of the attributes.
2. No [Bottleneck] method calls [Caching] method.

I’d like to have this tool integrated with VS 2010.

Regards,

  • 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-25T02:37:04+00:00Added an answer on May 25, 2026 at 2:37 am

    You could always write your own custom tool, using either reflection, Mono.Cecil or write your own FxCop / CodeAnalysis custom rule(s).

    You could also use NDepend, which allows you to basically write “SQL like” queries upon your assemblies. Using this CQL (Code Query Language) you could check for your constraints. NDepend integrates into Visual Studio and also has a command line version for automated builds.

    Especially with your 2nd requirement (call graph) I’m not sure if NDepend can do that. Your own tools could certainly, as could be done with a custom FxCop rule.

    EDIT: Looking at NDepend’s CQL specification, I’d be inclined to say that the 2nd requirement indeed is not (easily) doable.

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

Sidebar

Related Questions

What's the shortest, one-liner way to list all methods defined with attr_accessor ? I
Is there a way to print all methods of an object in JavaScript?
Is there a way to get all methods (private, privileged, or public) of a
I'm trying to enumerate all methods in an assembly and add them to nodes
I'm doing some post-build CIL weaving that adds CIL to all methods in an
Suppose I have an existing assembly, and some of the classes have overloaded methods,
I want to use this code to grab all methods from the assembly Mscorlib.dll
The RFC for a Java class is set of all methods that can be
How to create an aspect checking for null references on all methods in a
If I have child class,the child class inherits all methods from the parent,but how

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.