ironpython - String is null or empty -


OK, these are some easy points. PyBinding came with this script:

  def IsNotNull (value): return value is none  

It is closed, but what do I need?

  bool isNotNullOrEmpty (string value) {return (value! = Null) & amp; Amp; (Value length & gt; 0); }  

To check that a string is empty, you will use it. Try it:

def IsNotNull (value): Return value is none and Lennon (value)> 0

Comments

Popular posts from this blog

php - multilevel menu with multilevel array -

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

objective c - iPhone and it's wireless area -