C# Type FilterNameIgnoreCase

Description

Type FilterNameIgnoreCase represents the case-insensitive member filter used on names. This field is read-only.

Syntax

Type.FilterNameIgnoreCase has the following syntax.


public static readonly MemberFilter FilterNameIgnoreCase

Example

The following example shows how to use Type.FilterNameIgnoreCase field.


using System;/*  w w w  .  j a  va2 s.  com*/
using System.Reflection;
using System.Security;

public class MyFilterNameIgnoreCaseSample
{
    public static void Main()
    {  
            MemberFilter myFilter = Type.FilterNameIgnoreCase;
            Type myType = typeof(System.String);
            MemberInfo[] myMemberinfo1 = myType.FindMembers(MemberTypes.Constructor
                |MemberTypes.Method, BindingFlags.Public | BindingFlags.Static |
                BindingFlags.Instance, myFilter, "C*");
            foreach (MemberInfo myMemberinfo2 in myMemberinfo1) 
            { 
                Console.Write("\n" + myMemberinfo2.Name);
                MemberTypes Mymembertypes = myMemberinfo2.MemberType; 
                Console.WriteLine(" is a " + Mymembertypes.ToString()); 
            }

    }
}

The code above generates the following result.





















Home »
  C# Tutorial »
    System »




Array
BitConverter
Boolean
Byte
Char
Console
ConsoleKeyInfo
Convert
DateTime
DateTimeOffset
Decimal
Double
Enum
Environment
Exception
Guid
Int16
Int32
Int64
Math
OperatingSystem
Random
SByte
Single
String
StringComparer
TimeSpan
TimeZone
TimeZoneInfo
Tuple
Tuple
Tuple
Type
UInt16
UInt32
UInt64
Uri
Version