C# finding a certain condition of a object via a dictionary -


Currently I'm using this method to determine if a character is online:

  public bool online bicycler (string username) {foreach (character c.charts.wols in it) {if (c! = Null & amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; )) {Return; }         }         return false; }  

Is there a faster way to do this?

Actually there is not a quick way to do this, if you put the letter as a dictionary value Want to To be sorted out, a linear o (n) search must be done.


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -