Skip to content

Commit aed78c7

Browse files
committed
Make ConditionalProjection not sealed
1 parent bf4d659 commit aed78c7

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/NHibernate/Criterion/ConditionalProjection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ namespace NHibernate.Criterion
1313
/// <seealso cref="SimpleProjection" />
1414
/// <seealso cref="ConditionalProjectionCase" />
1515
[Serializable]
16-
public sealed class ConditionalProjection : SimpleProjection
16+
public class ConditionalProjection : SimpleProjection
1717
{
1818
private readonly ConditionalProjectionCase[] cases;
1919
private readonly IProjection elseProjection;

src/NHibernate/Criterion/Projections.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -357,15 +357,15 @@ public static IProjection Conditional(ICriterion criterion, IProjection whenTrue
357357
}
358358

359359
/// <summary>
360-
/// Conditionally returns one of the <see cref="ConditionalProjectionCase.Projection"/>s depending on the <see cref="ConditionalProjectionCase.Criterion"/>s of <paramref name="criterionProjections"/> or the <paramref name="elseProjection"/>.
360+
/// Conditionally returns one of the <see cref="ConditionalProjectionCase.Projection"/>s depending on the <see cref="ConditionalProjectionCase.Criterion"/>s of <paramref name="cases"/> or the <paramref name="elseProjection"/>.
361361
/// This produces an switch-case expression with multiple when-then parts.
362362
/// </summary>
363-
/// <param name="criterionProjections">The <see cref="ConditionalProjectionCase"/>s which contain your <see cref="ICriterion"/>s and <see cref="IProjection"/>s.</param>
363+
/// <param name="cases">The <see cref="ConditionalProjectionCase"/>s which contain your <see cref="ICriterion"/>s and <see cref="IProjection"/>s.</param>
364364
/// <param name="elseProjection">The else <see cref="IProjection"/>.</param>
365365
/// <returns>A <see cref="IProjection"/> for a switch-expression with multiple <see cref="ICriterion">Criterions</see> ("when") <see cref="IProjection">Projections</see> ("then").</returns>
366-
public static IProjection Conditional(ConditionalProjectionCase[] criterionProjections, IProjection elseProjection)
366+
public static IProjection Conditional(ConditionalProjectionCase[] cases, IProjection elseProjection)
367367
{
368-
return new ConditionalProjection(criterionProjections, elseProjection);
368+
return new ConditionalProjection(cases, elseProjection);
369369
}
370370

371371
public static IProjection SubQuery(DetachedCriteria detachedCriteria)

0 commit comments

Comments
 (0)