c# - comparing to MinValue using <= instead of == -


मैं बस कोड की निम्नलिखित पंक्ति में भाग गया:

  यदि (someInt & lt; = Int.minwalue)  

मुझे लगता है कि मुझे कुछ सूक्ष्मता है जो & lt; = तुलना का उपयोग करता है अधिक सहज ज्ञान युक्त == तुलना से बेहतर?

यह न्यूनतम संभव मान है इंट की कोई बात नहीं है, ऐसा लगता है कि इसमें कुछ भी याद नहीं है कोड के साथ जाओ जो आपके लिए सबसे अधिक सहजता से पढ़ता है।


Comments

Popular posts from this blog

.net - C# List<T>.Find(x=>x.Rectangle.Contains(Point)) FAIL -

iphone - Smoothing a rounded stroke in Core Graphics -

Best practice for URL redirection in ASP.NET web application -