StringUtils Class

Summary

Groups a set of useful string manipulation and validation methods.
Assembly
NAnt.Core.dll
Namespace
NAnt.Core.Util
Base Types
  • Object
graph BT Type-->Base0["Object"] Type["StringUtils"] class Type type-node

Syntax

public sealed class StringUtils

Methods

Name Value Summary
Clone(StringCollection) StringCollection
Creates a shallow copy of the specified System.Collections.Specialized.StringCollection.
static
ConvertEmptyToNull(string) string
Converts an empty string ("") to null.
static
ConvertNullToEmpty(string) string
Converts null to an empty string.
static
EndsWith(string, char) bool
Determines whether the last character of the given string matches the specified character.
static
IsNullOrEmpty(string) bool
Indicates whether or not the specified string is null or an System.String.Empty string.
static
Join(string, StringCollection) string
Concatenates a specified separator string between each element of a specified System.Collections.Specialized.StringCollection, yielding a single concatenated string.
static