Solved

Need to add objects to array without creating duplicates

Posted on 2008-10-18
3
265 Views
Last Modified: 2013-12-17
I am building a RFID inventory project.  I need to track RFID tags passing several antenna's.  RFID tags will be read several times approx 40+ times as they pass an antenna.  I need to be able to build an object with various information from the RFID read without it duplicating tag information so that I can add it to a database without causing duplicate entries and/or un needed database access.  In the perl world I would just assign a tag to say $rfid{$tagid} = "something" which would keep duplicates from being an issue using a HASH.  Is there something similar that can be done in C# or even a better way?

A bit of code would be most desirable but at least a link to some useful information would be greatly appreciated.
0
Comment
Question by:Tekati68
[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
3 Comments
 
LVL 16

Accepted Solution

by:
CuteBug earned 250 total points
ID: 22749313
0
 
LVL 26

Assisted Solution

by:Anurag Thakur
Anurag Thakur earned 250 total points
ID: 22771077
You can use an List <T> for that
In a list you can use the contains to see whether the value exists or not by .Contains()

MSDN
http://msdn.microsoft.com/en-us/library/6sh2ey19(VS.80).aspx
0
 

Expert Comment

by:trenstar
ID: 22840585
Hi Tekati68

I am interested in how you read RFID tags?
Are you able to lock the tags in order to stop other readers / users from reading your tags and modifying the data on the tag?

Currently using Sirit reader with the GEN 2 tags, but when I lock the fields on the tags (kill, access, tid, tag_id, user_data), I am still able to read the tag without the new access password.
All this in C# and using the RAPID sdk.

Hop you can help!

Thanks
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Flash (http://en.wikipedia.org/wiki/Adobe_Flash) has evolved over the years to where it has become a masterful tool for displaying content screen.  It has excellent layout placement, UI precision as well as rendering capabilities. This, along with t…
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 we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

630 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