python - C# boolean capitalization -


i'm working in python c# library have edit. in python, booleans specified true/false. in c#, true/false. driving me crazy. there way use #define or make c# recognize true/false true/false?

one way declare constant reflects true value.

public const bool true = true; 

i wouldn't go down path though seems more personal choice. may confuse other developers , doesn't add general value.


Comments

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -