Filters

We found 3 examples in language CSharp for this search. You will see 5 fragments of code.

        public static Filter CombineAnd(params Filter[] filters)
        {
            return Combine(combinedFilters => new AndFilter { And = combinedFilters }, filter => filter.And, filters);
        }

        public static Filter CombineOr(params Filter[] filters)
        {
            return Combine(combinedFilters => new OrFilter { Or = combinedFilters }, filter => filter.Or, filters);
        }

        [Fact]
        public void ActionFilters_ReturnsEmptyArray_WhenFiltersIsEmpty()
        {
            // Arrange
            IEnumerable<FilterInfo> filters = CreateEmptyFilters();
            FilterGrouping product = CreateProductUnderTest(filters);

            // Act
            IActionFilter[] actionFilters = product.ActionFilters;
            
            // Assert
            Assert.NotNull(actionFilters);
            Assert.Equal(0, actionFilters.Length);
        }

        private static FilterGrouping CreateProductUnderTest(IEnumerable<FilterInfo> filters)
        {
            return new FilterGrouping(filters);
        }


        private static FilterInfo CreateProductUnderTest(IEnumerable<Filter> filters)
        {
            return new FilterInfo(filters);
        }

Microsoft.Azure.Management.Media.Models.Filters : Object

Constructors :

public Filters()
public Filters(Deinterlace deinterlace = null, Nullable<Rotation> rotation = null, Rectangle crop = null, IList<Overlay> overlays = null)

Methods :

public Deinterlace get_Deinterlace()
public Void set_Deinterlace(Deinterlace value = )
public Nullable<Rotation> get_Rotation()
public Void set_Rotation(Nullable<Rotation> value = )
public Rectangle get_Crop()
public Void set_Crop(Rectangle value = )
public IList<Overlay> get_Overlays()
public Void set_Overlays(IList<Overlay> value = )
public Type GetType()
public String ToString()
public Boolean Equals(Object obj = )
public Int32 GetHashCode()