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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T07:38:09+00:00 2026-06-11T07:38:09+00:00

As the question states; is it possible to suppress all specified warmings that appears

  • 0

As the question states; is it possible to suppress all specified warmings that appears within a class? I’ve been trying out attributes along the lines of:

namespace Testing2k.Collections
{
    /// <summary>
    /// Represents a collection that utilizes an array internally to store it's content.
    /// </summary>
    /// <typeparam name="T"> The type of elements contained in the collection. </typeparam>

    [SuppressMessage("Microsoft.Performance", "CA1800", Justification = "Choosing readability over a trivial optimalization.", Target = "Testing2k.Collections.ArrayBasedCollection<T>")]
    public abstract class ArrayBasedCollection<T> : ArrayBasedStructure<T>, ICollection<T>, IEnumerable<T>
    {
        // ...
    }
}

None of them seem to do anything, so I’m wondering what the correct way to do it is, if it’s even possible.

  • 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-11T07:38:11+00:00Added an answer on June 11, 2026 at 7:38 am

    You seem to have it mostly right.

    SuppressMessageAttribute has a [Conditional("CODE_ANALYSIS")] attribute applied to it, so make sure you have defined the CODE_ANALYSIS conditional compilation symbol.

    In addition, you can try changing that "CA1800" to "CA1800:DoNotCastUnnecessarily".

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

Sidebar

Related Questions

My question is as the title states. Is it possible or is that restricted
The title of the question pretty much states the problem. Is it possible?
As the question states, does the integer-factorization problem fall into the class of NP-Complete
As my question states, I can't figure out why, but while using WebMatrix to
Okay so here is the deal. As the question states, I'm trying to POST
As the title states, I'm wondering if it's possible to selectively choose tables that
As the question states: how is it possible to process some dynamic videostream? By
As the question states, is it possible to map a composite key in fluent
Quick question: Is it possible to showDialog/Show form from a new thread that has
I'm using my custom class that describes some states and values: class MyClass {

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.