Class OrExpressionExtensions

The OrExpressionExtensions class adds supplementary factory methods to the OrExpression class.

Inheritance
System.Object
OrExpressionExtensions
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 OrExpressionExtensions

Methods

And(OrExpression, FilterExpression[])

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

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

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(OrExpression, IEnumerable<FilterExpression>)

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

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

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(OrExpression, FilterExpression[])

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

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

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(OrExpression, IEnumerable<FilterExpression>)

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

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

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