diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2013-03-26 15:59:55 -0700 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2013-03-26 15:59:55 -0700 |
commit | 461810cf0d89103d79e6ee0544993ee3991fe80e (patch) | |
tree | 08e34f07d05887c7230f5677fe9e47bdd9a9c795 /samples/OAuthConsumer/GoogleAddressBook.aspx.cs | |
parent | b9ae2ab289e2b9708ea3cce055ac484b00246a8a (diff) | |
download | DotNetOpenAuth-461810cf0d89103d79e6ee0544993ee3991fe80e.zip DotNetOpenAuth-461810cf0d89103d79e6ee0544993ee3991fe80e.tar.gz DotNetOpenAuth-461810cf0d89103d79e6ee0544993ee3991fe80e.tar.bz2 |
More StyleCop fixes.
Diffstat (limited to 'samples/OAuthConsumer/GoogleAddressBook.aspx.cs')
-rw-r--r-- | samples/OAuthConsumer/GoogleAddressBook.aspx.cs | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/samples/OAuthConsumer/GoogleAddressBook.aspx.cs b/samples/OAuthConsumer/GoogleAddressBook.aspx.cs index 591f658..dcf5030 100644 --- a/samples/OAuthConsumer/GoogleAddressBook.aspx.cs +++ b/samples/OAuthConsumer/GoogleAddressBook.aspx.cs @@ -51,13 +51,14 @@ XDocument contactsDocument = await google.GetContactsAsync(this.AccessToken, 5, 1, Response.ClientDisconnectedToken); - var contacts = from entry in contactsDocument.Root.Elements(XName.Get("entry", "http://www.w3.org/2005/Atom")) - select - new { - Name = entry.Element(XName.Get("title", "http://www.w3.org/2005/Atom")).Value, - Email = - entry.Element(XName.Get("email", "http://schemas.google.com/g/2005")).Attribute("address").Value - }; + var contacts = + from entry in contactsDocument.Root.Elements(XName.Get("entry", "http://www.w3.org/2005/Atom")) + select + new { + Name = entry.Element(XName.Get("title", "http://www.w3.org/2005/Atom")).Value, + Email = + entry.Element(XName.Get("email", "http://schemas.google.com/g/2005")).Attribute("address").Value + }; StringBuilder tableBuilder = new StringBuilder(); tableBuilder.Append("<table><tr><td>Name</td><td>Email</td></tr>"); foreach (var contact in contacts) { |