<p>I had the following line snippet of code that searches for a propery of an instance by name:</p>

<pre><code>var prop = Backend.GetType().GetProperty(fieldName);
</code></pre>

<p>Now I want to ignore the case of fieldName, so I tried the following:</p>

<pre><code>var prop = Backend.GetType().GetProperty(fieldName, BindingFlags.IgnoreCase);
</code></pre>

<p>... No dice.  Now prop won't find field names that have the exact case.</p>

<p>Hence.....
How do I use .Net reflection to search for a property by name ignoring case?</p>

You need to specify
```
BindingFlags.Public | BindingFlags.Instance
```
as well:
```
```
using System;
using System.Reflection;

public class Test
{
    private int foo;

    public int Foo { get { return foo; } }

    static void Main()
    {
        var prop = typeof(Test).GetProperty("foo",
                                            BindingFlags.Public
                                            | BindingFlags.Instance 
                                            | BindingFlags.IgnoreCase);
        Console.WriteLine(prop);
    }
}
```
```
(When you don't specify any flags, public, instance and static are provided by default. If you're specifying it explicitly I suggest you only specify one of instance or static, if you know what you need.)