Ok, here are some easy points. PyBinding came with this script:
def IsNotNull(value):
return value is not None
It is close, but what I want is this.
bool IsNotNullOrEmpty(string value) {
return (value != null) && (value.Length > 0 );
}
To check if a string is empty you would use
|
|||||||||||
|
You should not be doing this in a function. Instead you should just use:
|
|||||||||||||
|
If it's IronPython, then why not use the default implementation of IsNullOrEmpty from System.String?
|
|||
|
|
|||||
|
i think,
is equivalent to
for strings. so i think the function is not necessary in python. |
|||
|