Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

I am having difficulty in writing code

  public void Func(string[] Abc)
  {

    string value=GetValue();
    While(any string in Abc[] contains value)
    {
     value=GetValue();
    }
  }

the problem is the simple way so that i can check all values in Abc in single while statment, please help

share|improve this question

put on hold as off-topic by Pieter B, ratchet freak, James McLeod, Kilian Foth, gnat 2 days ago

  • This question does not appear to be about software development within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

    
why didn't you ask at Stack Overflow? meta.stackexchange.com/a/129632/165773 –  gnat 2 days ago
2  
This question appears to be off-topic because it is about basic programming knowledge and of too low quality to migrate to SE. –  ratchet freak 2 days ago

Browse other questions tagged or ask your own question.