@@ -264,26 +264,26 @@ For example:
264
264
```csharp
265
265
public static class MyFunctions
266
266
{
267
- public static LogEventPropertyValue ? IsFoo (
267
+ public static LogEventPropertyValue ? IsHello (
268
268
StringComparison comparison ,
269
- LogEventPropertyValue ? maybeFoo )
269
+ LogEventPropertyValue ? maybeHello )
270
270
{
271
- if (maybeFoo is ScalarValue sv && sv .Value is string s )
272
- return new ScalarValue (s .Equals (" Foo " , comparison ));
271
+ if (maybeHello is ScalarValue sv && sv .Value is string s )
272
+ return new ScalarValue (s .Equals (" Hello " , comparison ));
273
273
274
274
// Undefined - argument was not a string.
275
275
return null ;
276
276
}
277
277
}
278
278
```
279
279
280
- In the example , `IsFoo ( 'Foo ' )` will evaluate to `true `, `IsFoo ( 'FOO ' )` will be `false `, `IsFoo ( 'FOO ' ) ci `
281
- will be `true `, and `IsFoo (42 )` will be undefined .
280
+ In the example , `IsHello ( 'Hello ' )` will evaluate to `true `, `IsHello ( 'HELLO ' )` will be `false `, `IsHello ( 'HELLO ' ) ci `
281
+ will be `true `, and `IsHello (42 )` will be undefined .
282
282
283
283
User - defined functions are supplied through an instance of `NameResolver `:
284
284
285
285
```csharp
286
286
var myFunctions = new StaticMemberNameResolver (typeof (MyFunctions ));
287
- var expr = SerilogExpression .Compile (" IsFoo (User.Name)" , new [] { myFunctions });
287
+ var expr = SerilogExpression .Compile (" IsHello (User.Name)" , new [] { myFunctions });
288
288
// Filter events based on whether `User.Name` is `'Foo'` :-)
289
289
```
0 commit comments