Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public IEnumerable GetColumnSize(IQueryable source)
- {
- var types = MapTypeToMembers(source).Select(x => x.Type);
- return types.Select(x => MapTypeToSize(x));
- }
- var lengths = from o in myObjectCollection
- select new
- {
- PropertyLength1 = o.Property1.ToString().Length,
- PropertyLength2 = o.Property2.ToString().Length,
- ...
- }
- var lengths = from o in myObjectCollection
- select o.ToString().Length;
Add Comment
Please, Sign In to add comment