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


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

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

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

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


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

c++ - QtQuick: QQmlApplicationEngine failed to load component qrc:/main.qml:23 Invalid attached object assignment -