CaseSwitchAttribute constructor

namespace: Serenity.Data.Mapping   assemblySerenity.Net.Data

Creates a new instance

public CaseSwitchAttribute(object switchValue, object when1, object then1, 
    params object[] pairsElse)
parameter description
switchValue Switch value
when1 When expression 1
then1 When expression 2
pairsElse Additional when else pairs, followed by an optional ELSE statement. Else assumed only if the number of elements is odd

Exceptions

exception condition
ArgumentNullException One of expressions is null

See Also