Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var convertStrategy =
- rowDef.UpdateFrequency.Equals("MONTHLY", StringComparison.InvariantCultureIgnoreCase)
- ? (Func<DateTime, DateTime>) (e => new DateTime(e.Year, e.Month, 1))
- : (Func<DateTime, DateTime>) (e => new DateTime(e.Year, 1, 1));
- One of `(Func<DateTime, DateTime>)` casts is redundant, i.e. it is possible to remove either of them.
- But even if I replace `var` with `Func<DateTime, DateTime>` I still need one of them.
Advertisement
Add Comment
Please, Sign In to add comment