Example #1
0
        private IEnumerable <PropertyInfo> GetInternalProperties(Type type)
        {
            Func <PropertyInfo, bool> canInclude = property => CreateMatchingGet(property)() || CreateMatchingSet(property)();

            return(cache.Get(type.AssemblyQualifiedName, () => type.GetProperties(BindingFlags.Public | BindingFlags.Instance).Where(canInclude)));
        }
Example #2
0
        public IEnumerable <PropertyInfo> GetWriteOnlyProperties(Type type)
        {
            Func <PropertyInfo, bool> canInclude = property => CreateMatchingSet(property)();

            return(GetInternalProperties(type).Where(canInclude));
        }