CSharp examples for System.Reflection:Type
Types Are Equal
using System.Reflection; using System.Linq; using System.Collections.Generic; using System;//from w w w .j a v a2 s . c o m public class Main{ private static bool TypesAreEqual(Type[] memberTypes, Type[] searchedTypes) { if (((memberTypes == null) || (searchedTypes == null)) && (memberTypes != searchedTypes)) return false; if (memberTypes.Length != searchedTypes.Length) return false; for (int i = 0; i < memberTypes.Length; i++) { if (memberTypes[i] != searchedTypes[i]) return false; } return true; } }