Skip to content

Commit

Permalink
Merge pull request #689 from am11/master
Browse files Browse the repository at this point in the history
Code: Renamed variable
  • Loading branch information
madskristensen committed Feb 25, 2014
2 parents 030f5d4 + 5c7ded7 commit 6f28dc1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions EditorExtensions/Commands/Code/IntellisenseParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -187,13 +187,13 @@ private static void ProcessClass(CodeClass cc, List<IntellisenseObject> list)
{
var references = new HashSet<string>();
var properties = GetProperties(cc.Members, new HashSet<string>(), references).ToList();
var DataContractAttribute = cc.Attributes.Cast<CodeAttribute>().Where(a => a.Name == "DataContract");
var dataContractAttribute = cc.Attributes.Cast<CodeAttribute>().Where(a => a.Name == "DataContract");
string className = cc.Name;
string nsName = GetNamespace(cc);

if (DataContractAttribute.Any())
if (dataContractAttribute.Any())
{
var keyValues = DataContractAttribute.First().Children.OfType<CodeAttributeArgument>()
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);
Expand Down

0 comments on commit 6f28dc1

Please sign in to comment.