Special Methods

We've created a few special methods to help simplify your expressions.

These methods are not standard C# functions but we added them to simplify some common use-cases. 

String.OneOf() Method

This string extension method is used to specify one or more values. Ideal replacement for using multiple or (||) conditions.

Evaluate by specifying multiple employee numbers
Employee.EmployeeNumber.OneOf('001234,005678,009876')
 
Evaluate by specifying multiple location codes
Location.LocationCode.OneOf('MIA,LAX,JFK,LGA')
 
 
Evaluate by specifying multiple company codes
Employment.CompanyCode.OneOf("TSLA,MSFT,AMZN,META,AAPL,GOOGL")
  
 

String.NotOneOf() Method

This string extension method is used to specify one or more values to exclude. Ideal replacement for using multiple or (||) conditions.

Evaluate by specifying multiple employee numbers
Employee.EmployeeNumber.NotOneOf('999901,999902,999903')
 
Evaluate by specifying multiple location codes
Location.LocationCode.NotOneOf('TEST,DEMO,EVAL')
 
 
Evaluate by specifying multiple company codes
Employment.CompanyCode.OneOf("ENE,LEHLQ,TWO")
  
 

String.RemoveDiacritics() Method

This string extension method is used to replace diacritical characters with their equivalent non-diacritical characters

Replace diacritic characters with non-diacritic characters
Person.FirstName.RemoveDiacritics()
  
  • If the persons first name is Renée, it will be replaced with Renee.
  • If the persons first name is Amélie, it will be replaced with Amelie.
  • If the persons first name is Héloïse, it will be replaced  with Heloise.

 

Next Supported Fields