Advertisement
Guest User

Untitled

a guest
Mar 28th, 2017
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. else if(clr9[0].Equals(clr9[1]) && clr9[0].Equals(clr9[2]) && clr9[0].Equals(clr9[3]))
  2.  
  3. else if(clr9[0].Equals(clr9[1].Equals(clr9[2].Equals(clr9[3]))))
  4.  
  5. if(clr9.Skip(1).All(c => c.Equals(clr9[0])))
  6.  
  7. if (clr9.Distinct().Skip(1).Any())
  8. {
  9. //Do something
  10. }
  11.  
  12. public static bool In<T>(this T val, params T[] options)
  13. {
  14. return options.Contains(val);
  15. }
  16.  
  17. else if (clr9[0].In(clr9.Skip(1).ToArray()))
  18.  
  19. else if (clr9[0].In(clr9[1], clr9[2], clr9[3]))
  20.  
  21. else if (clr9[0].In(clr9.Skip(1).Take(3).ToArray())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement