?
SolvedPrivate

searching with linq

Posted on 2014-02-07
1
Medium Priority
?
61 Views
Last Modified: 2016-02-10
I have the following data.  I need to represent this in code somehow..like a struct, or lookup...dictionary..which ever is the best way...and then be able to find the info with LINQ.  How would I set this up.


<KeyPaths>
            <KeyPath EventType="API" Key="MRC" Path="PRPS/PRP[@KEY='MRC']" />
            <KeyPath EventType="API" Key="ARC" Path="PRPS/PRP[@KEY='ARC']" />
            <KeyPath EventType="API" Key="SCHEDULE_CANCEL"   Path="PRPS/PRP[@KEY='SCHEDULE_CANCEL']" />
            <KeyPath EventType="API" Type="Default" Path="FLDS/FLD[@KEY='{0}']" />
            <KeyPath EventType="DMN" Type="Default" Path="{0}" />
</KeyPaths>
0
Comment
Question by:Robb Hill
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 21

Accepted Solution

by:
Craig Wagner earned 2000 total points
ID: 39842578
public class KeyPath
{
    public string EventType { get; set; }
    public string Key { get; set; }
    public string Type { get; set; }
    public string Path { get; set; }
}

var keyPaths = new List<KeyPath>();

Open in new window

0

Featured Post

Monthly Recap

May was a big month for new releases from Linux Academy! Take a look at what our team built recently in our blog. You can access the newest releases from our blog.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question