Bifrost.FluentValidation.Commands.CommandValidatorProvider.GetTypesFromCommand C# (CSharp) Method

GetTypesFromCommand() private method

private GetTypesFromCommand ( Type commandType ) : IEnumerable
commandType System.Type
return 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;
        }