Class AndExpressionExtensions

The AndExpressionExtensions class adds supplementary factory methods to the AndExpression class.

Inheritance
System.Object
AndExpressionExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Social.Common
Assembly: EPiServer.Social.Common.dll
Version: 1.5.4
Syntax
public static class AndExpressionExtensions

Methods

And(AndExpression, FilterExpression[])

Creates an AndExpression combining the collection of specified expressions with the target expression.

Declaration
public static AndExpression And(this AndExpression andExpression, params FilterExpression[] expressions)
Parameters
Type Name Description
AndExpression andExpression

Expression targeted by this extension

FilterExpression[] expressions

Expressions to be combined

Returns
Type Description
AndExpression

AndExpression combining the collection of specified expressions with the target expression

And(AndExpression, IEnumerable<FilterExpression>)

Creates an AndExpression combining the collection of specified expressions with the target expression.

Declaration
public static AndExpression And(this AndExpression andExpression, IEnumerable<FilterExpression> expressions)
Parameters
Type Name Description
AndExpression andExpression

Expression targeted by this extension

System.Collections.Generic.IEnumerable<FilterExpression> expressions

Expressions to be combined

Returns
Type Description
AndExpression

AndExpression combining the collection of specified expressions with the target expression

Or(AndExpression, FilterExpression[])

Creates an OrExpression combining the collection of specified expressions with the target expression.

Declaration
public static OrExpression Or(this AndExpression andExpression, params FilterExpression[] expressions)
Parameters
Type Name Description
AndExpression andExpression

Expression targeted by this extension

FilterExpression[] expressions

Expressions to be combined

Returns
Type Description
OrExpression

OrExpression combining the collection of specified expressions with the target expression

Or(AndExpression, IEnumerable<FilterExpression>)

Creates an OrExpression combining the collection of specified expressions with the target expression.

Declaration
public static OrExpression Or(this AndExpression andExpression, IEnumerable<FilterExpression> expressions)
Parameters
Type Name Description
AndExpression andExpression

Expression targeted by this extension

System.Collections.Generic.IEnumerable<FilterExpression> expressions

Expressions to be combined

Returns
Type Description
OrExpression

OrExpression combining the collection of specified expressions with the target expression

arrow_upward