Created
November 6, 2012 09:41
-
-
Save rarous/4023721 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| static XElement XSection<T>(string name, T[] items) | |
| { | |
| if (items == null || !items.Any()) | |
| return null; | |
| return new XElement(name, from dynamic item in items select item.ToXElement()); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment