Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
SolvedPrivate

searching with linq

Posted on 2014-02-07
1
Medium Priority
?
62 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

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

Question has a verified solution.

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

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
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 …
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …

609 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