KellermanSoftware.CompareNetObjects.TypeComparers.PropertyComparer.GetCurrentProperties C# (CSharp) Method

GetCurrentProperties() private static method

private static GetCurrentProperties ( CompareParms parms ) : IEnumerable
parms CompareParms
return IEnumerable
        private static IEnumerable<PropertyInfo> GetCurrentProperties(CompareParms parms)
        {
            IEnumerable<PropertyInfo> currentProperties = null;

            //Interface Member Logic
            if (parms.Config.InterfaceMembers.Count > 0)
            {
                Type[] interfaces = parms.Object1Type.GetInterfaces();

                foreach (var type in parms.Config.InterfaceMembers)
                {
                    if (interfaces.Contains(type))
                    {
                        currentProperties = Cache.GetPropertyInfo(parms.Result, type);
                        break;
                    }
                }
            }

            if (currentProperties == null)
                currentProperties = Cache.GetPropertyInfo(parms.Result, parms.Object1Type);
            return currentProperties;
        }