2 people like it.

String.notNullOrEmpty extension to strings

String.notNullOrEmpty extension to strings

1: 
module String = let notNullOrEmpty = not << System.String.IsNullOrEmpty
module String

from Microsoft.FSharp.Core
val notNullOrEmpty : (string -> bool)

Full name: Script.String.notNullOrEmpty
val not : value:bool -> bool

Full name: Microsoft.FSharp.Core.Operators.not
namespace System
Multiple items
type String =
  new : value:char -> string + 7 overloads
  member Chars : int -> char
  member Clone : unit -> obj
  member CompareTo : value:obj -> int + 1 overload
  member Contains : value:string -> bool
  member CopyTo : sourceIndex:int * destination:char[] * destinationIndex:int * count:int -> unit
  member EndsWith : value:string -> bool + 2 overloads
  member Equals : obj:obj -> bool + 2 overloads
  member GetEnumerator : unit -> CharEnumerator
  member GetHashCode : unit -> int
  ...

Full name: System.String

--------------------
System.String(value: nativeptr<char>) : unit
System.String(value: nativeptr<sbyte>) : unit
System.String(value: char []) : unit
System.String(c: char, count: int) : unit
System.String(value: nativeptr<char>, startIndex: int, length: int) : unit
System.String(value: nativeptr<sbyte>, startIndex: int, length: int) : unit
System.String(value: char [], startIndex: int, length: int) : unit
System.String(value: nativeptr<sbyte>, startIndex: int, length: int, enc: System.Text.Encoding) : unit
System.String.IsNullOrEmpty(value: string) : bool
Raw view Test code New version

More information

Link:http://fssnip.net/lm
Posted:10 years ago
Author:Tuomas Hietanen
Tags: string