Bifrost.FluentValidation.Commands.CommandValidatorProvider.GetTypesFromCommand C# (CSharp) Метод

GetTypesFromCommand() приватный Метод

private GetTypesFromCommand ( Type commandType ) : IEnumerable
commandType System.Type
Результат IEnumerable
        IEnumerable<Type> GetTypesFromCommand(Type commandType)
        {
            var commandPropertyTypes = commandType.GetProperties(System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.Instance)
                                            .Where(p => !p.PropertyType.IsAPrimitiveType()).Select(p => p.PropertyType).Distinct();
            return commandPropertyTypes;
        }