Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Console.WriteLine(output);
- var q = from n in records select new
- {
- Zip = new Func<string, string>((s) =>
- {
- if (s != null)
- {
- string[] split = s.Split(new char[] { '-' });
- if (split[0].Length == 5)
- {
- return split[0];
- }
- }
- return string.Empty;
- })(n.ZipCode),
- ZipPlus4 = new Func<string, string>((s) => { return s.Substring(6, 10); })(n.ZipCode)
- };
Add Comment
Please, Sign In to add comment