Skip to content

Commit

Permalink
Merge pull request #690 from am11/master
Browse files Browse the repository at this point in the history
Code: Minor improvements
  • Loading branch information
madskristensen committed Feb 25, 2014
2 parents 6f28dc1 + 9358ea1 commit 229f2e1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions EditorExtensions/Commands/Code/IntellisenseParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,7 @@ private static void ProcessClass(CodeClass cc, List<IntellisenseObject> list)
if (dataContractAttribute.Any())
{
var keyValues = dataContractAttribute.First().Children.OfType<CodeAttributeArgument>()
.Where(a => a.Name != "IsReference")
.Select(a => new KeyValuePair<string, string>(a.Name, a.Value.Split('"', '\'')[1]))
.ToDictionary(kvp => kvp.Key, kvp => kvp.Value);
.ToDictionary(a => a.Name, a => (a.Value ?? "").Trim('\"', '\''));

if (keyValues.ContainsKey("Name"))
className = keyValues["Name"];
Expand Down

0 comments on commit 229f2e1

Please sign in to comment.