how to search a string in structure variable ( C# )

Posted by deep on Stack Overflow See other posts from Stack Overflow or by deep
Published on 2010-05-04T08:14:21Z Indexed on 2010/05/04 8:18 UTC
Read the original article Hit count: 91

Filed under:
 public struct Items
{
    public string Id;
    public string Name;

}

   public Items[] _items = null;

if (_items.Contains("Table"))
                {
                    // i need to check the structure and need to return correponding id
                }

and am having a list of variables in my structure variable...
i need to search a Name in the structure(_items) and i want to return the Corresponding Id.

how to do this,

© Stack Overflow or respective owner

Related posts about struct