Hexapp Documentation
Hexapp Documentation
Hexapp API
Reference
MicaSystems.Utils
Utils_String Class
Utils_String Methods
AddLine Method
AddLines Method
Append Method
AppendLine Method
AppendList Method
CamelCaseToDisplay Method
Compare Method
Contains Method
ContainsAny Method
ContainsExact Method
ContainsNewLine Method
ConvertToEnum Method
CreateLines Method
CutOrPadRight Method
DecryptString Method
DeserializeJson Method
EncryptString Method
EnsureEnd Method
EnsureStart Method
FastConcat Method
FindParameters Method
FirstLetterToLower Method
FirstLetterToUpper Method
Generate Method
GetAllIndexes Method
GetBoolean Method
GetBytes Method
GetCronDay Method
GetDate Method
GetDateTimeOffset Method
GetDecimal Method
GetDouble Method
GetFloat Method
GetGuid Method
GetHash Method
GetHashString Method
GetInt Method
GetLong Method
GetString Method
GetStringWithMissingCR Method
HtmlAttributeEncode Method
HtmlEncode Method
IEquals Method
Insert Method
InsertFormat Method
IsNotNullOrEmpty Method
IsNullOrEmpty Method
LimitChars Method
NotEmptyOr Method
NumberOfOccurences Method
ParseIndex Method
RemoveAccent Method
RemoveBrackets Method
RemoveDiacritics Method
RemoveStrings Method
Replace Method
SerializeJson Method
SmartSplit Method
SplitToPair Method
SplitWords Method
StringToList(T) Method
ToCamelCase Method
ToKebabCase Method
ToLower Method
ToPascalCase Method
ToSentenceCase Method
ToSnakeCase Method
ToTitleCase Method
TrimEnd Method
TrimStart Method
TryConvertToEnum Method
UnTrim Method
UrlTotalEncode Method
Utils_String
NotEmptyOr Method
Returns original text if not null or empty, otherwise return alternative text sent in parameters.
Namespace:
MicaSystems.Utils
Assembly:
MicaSystems.Utils (in MicaSystems.Utils.dll) Version: 1.0.0.0 (1.1.0.123)
Syntax
C#
Copy
public
static
string
NotEmptyOr
(
this
string
text
,
string
alternative
)
Parameters
text
Type:
System
String
alternative
Type:
System
String
Return Value
Type:
String
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
String
. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic)
or
Extension Methods (C# Programming Guide)
.
See Also
Reference
Utils_String Class
MicaSystems.Utils Namespace
www.hexapp.com
×
Close feedback form
Send us
comments or requests about documentation