Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## String Operations
- Use `string.IsNullOrWhiteSpace()`
- Instead of `string.IsNullOrEmpty()`
- Use string interpolation instead concatination
- `"%" + searchPolicy.Surname.ToUpper(culture) + "%";`
- USE
- `$"%{searchPolicy.Surname.ToUpper(culture)}%";`
- Use Invariant string operations instead specify culture explicitly
- `searchPolicy.Name.ToUpper(culture) => searchPolicy.Surname.ToUpperInvariant()`
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement