Skip to content

issues Search Results · repo:DotNetAnalyzers/ReflectionAnalyzers language:C#

Filter by

208 results
 (137 ms)

208 results

inDotNetAnalyzers/ReflectionAnalyzers (press backspace or delete to remove)

due to that ref struct can t be used as Generic s Type Parameter, Unsafe.SkipInit doesn t work for it .
  • irvnriir
  • 2
  • Opened 
    on Oct 6, 2023
  • #359

GetXAnalyzer.IsNullCheck doesn t recognize is not null. The first code fragment raises REFL0009: var property = type.GetProperty(PropertyName); if (suppressionsProperty is not null) The second does ...
  • manfred-brands
  • 1
  • Opened 
    on Apr 1, 2022
  • #297

Hello, The problem is that i want to use it at my work place but i cannot just spam the application with nuget packages. Can install it globaly or as a visual studio extension?
  • Donaut
  • 3
  • Opened 
    on Mar 9, 2022
  • #291

[Test] public static void ValueTupleGetFieldItem1() { var before = @ namespace N { using System; class C { public object Get = typeof((int, double)).GetField(↓ ...
  • JohanLarsson
  • Opened 
    on Nov 9, 2020
  • #234

Another idea for an analyzer, warn when looking for an attribute on something where the AttributeUsage says it can t be. eg. given [AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface)] ...
  • brian-reichle
  • Opened 
    on May 20, 2020
  • #233

Assembly referenced through a binary (compiled) metadata reference: internal interface IFoo { object Bar { get; } } public class Foo : IFoo { internal object Bar { get; } object IFoo.Bar ...
  • jnm2
  • Opened 
    on Mar 25, 2020
  • #231

Even though private members are an unknown, the fact that a public member was found means that no private member can exist with the exact same signature. using System; using System.Reflection; class ...
  • jnm2
  • 6
  • Opened 
    on Mar 25, 2020
  • #230

This affects REFL016 and the fixes for others like REFL014. There should be no warning here: class Base { protected void M() { } } class Derived : Base { class Nested { void M() ...
  • jnm2
  • 4
  • Opened 
    on Mar 25, 2020
  • #229

VS 16.5.0. Repro: using System.Linq; using System.Threading; class C { void M() { typeof(C).GetMethod(nameof(M)); } } Apply the fix: using System.Linq; using System.Reflection; ...
maybe-fixed
  • jnm2
  • 2
  • Opened 
    on Mar 25, 2020
  • #228

These messages obscure the interesting part, GetMethod: Prefer typeof(EvaluatorContextDescriptor).GetProperty(nameof(EvaluatorContextDescriptor.IsTopLevelCollectionSource), BindingFlags.Public | BindingFlags.Instance ...
  • jnm2
  • 2
  • Opened 
    on Mar 25, 2020
  • #227
Issue origami icon

Learn how you can use GitHub Issues to plan and track your work.

Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub Issues
ProTip! 
Restrict your search to the title by using the in:title qualifier.
Issue origami icon

Learn how you can use GitHub Issues to plan and track your work.

Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub Issues
ProTip! 
Press the
/
key to activate the search input again and adjust your query.
Issue search results · GitHub