### YamlMime:ManagedReference
items:
- uid: adas_core.Domain.Utils.StringEx
commentId: T:adas_core.Domain.Utils.StringEx
id: StringEx
parent: adas_core.Domain.Utils
children:
- adas_core.Domain.Utils.StringEx.IsEmpty(System.String)
- adas_core.Domain.Utils.StringEx.IsEmptyOrWhiteSpace(System.String)
- adas_core.Domain.Utils.StringEx.SubstringAfter(System.String,System.String)
- adas_core.Domain.Utils.StringEx.SubstringBefore(System.String,System.String)
langs:
- csharp
- vb
name: StringEx
nameWithType: StringEx
fullName: adas_core.Domain.Utils.StringEx
type: Class
source:
remote:
path: adas-core.Domain/Utils/StringEx.cs
branch: document/release/1.0.1
repo: https://git.teralevel.io/adas/adas-core.git
id: StringEx
path: ../../adas-core.Domain/Utils/StringEx.cs
startLine: 5
assemblies:
- adas-core.Domain
namespace: adas_core.Domain.Utils
summary: Provides static extension methods for the type.
example: []
syntax:
content: public static class StringEx
content.vb: Public Module StringEx
inheritance:
- System.Object
inheritedMembers:
- System.Object.Equals(System.Object)
- System.Object.Equals(System.Object,System.Object)
- System.Object.GetHashCode
- System.Object.GetType
- System.Object.MemberwiseClone
- System.Object.ReferenceEquals(System.Object,System.Object)
- System.Object.ToString
- uid: adas_core.Domain.Utils.StringEx.IsEmpty(System.String)
commentId: M:adas_core.Domain.Utils.StringEx.IsEmpty(System.String)
id: IsEmpty(System.String)
isExtensionMethod: true
parent: adas_core.Domain.Utils.StringEx
langs:
- csharp
- vb
name: IsEmpty(string)
nameWithType: StringEx.IsEmpty(string)
fullName: adas_core.Domain.Utils.StringEx.IsEmpty(string)
type: Method
source:
remote:
path: adas-core.Domain/Utils/StringEx.cs
branch: document/release/1.0.1
repo: https://git.teralevel.io/adas/adas-core.git
id: IsEmpty
path: ../../adas-core.Domain/Utils/StringEx.cs
startLine: 12
assemblies:
- adas-core.Domain
namespace: adas_core.Domain.Utils
summary: Determines whether the specified string is null or an empty string.
example: []
syntax:
content: public static bool IsEmpty(this string source)
parameters:
- id: source
type: System.String
description: The string to evaluate.
return:
type: System.Boolean
description: true if source is null or an empty string; otherwise, false.
content.vb: Public Shared Function IsEmpty(source As String) As Boolean
overload: adas_core.Domain.Utils.StringEx.IsEmpty*
nameWithType.vb: StringEx.IsEmpty(String)
fullName.vb: adas_core.Domain.Utils.StringEx.IsEmpty(String)
name.vb: IsEmpty(String)
- uid: adas_core.Domain.Utils.StringEx.IsEmptyOrWhiteSpace(System.String)
commentId: M:adas_core.Domain.Utils.StringEx.IsEmptyOrWhiteSpace(System.String)
id: IsEmptyOrWhiteSpace(System.String)
isExtensionMethod: true
parent: adas_core.Domain.Utils.StringEx
langs:
- csharp
- vb
name: IsEmptyOrWhiteSpace(string)
nameWithType: StringEx.IsEmptyOrWhiteSpace(string)
fullName: adas_core.Domain.Utils.StringEx.IsEmptyOrWhiteSpace(string)
type: Method
source:
remote:
path: adas-core.Domain/Utils/StringEx.cs
branch: document/release/1.0.1
repo: https://git.teralevel.io/adas/adas-core.git
id: IsEmptyOrWhiteSpace
path: ../../adas-core.Domain/Utils/StringEx.cs
startLine: 22
assemblies:
- adas-core.Domain
namespace: adas_core.Domain.Utils
summary: Determines whether the specified string is null, empty, or consists only of white-space characters.
example: []
syntax:
content: public static bool IsEmptyOrWhiteSpace(this string source)
parameters:
- id: source
type: System.String
description: The string to evaluate.
return:
type: System.Boolean
description: true if the string is null, empty, or contains only white space; otherwise, false.
content.vb: Public Shared Function IsEmptyOrWhiteSpace(source As String) As Boolean
overload: adas_core.Domain.Utils.StringEx.IsEmptyOrWhiteSpace*
nameWithType.vb: StringEx.IsEmptyOrWhiteSpace(String)
fullName.vb: adas_core.Domain.Utils.StringEx.IsEmptyOrWhiteSpace(String)
name.vb: IsEmptyOrWhiteSpace(String)
- uid: adas_core.Domain.Utils.StringEx.SubstringAfter(System.String,System.String)
commentId: M:adas_core.Domain.Utils.StringEx.SubstringAfter(System.String,System.String)
id: SubstringAfter(System.String,System.String)
isExtensionMethod: true
parent: adas_core.Domain.Utils.StringEx
langs:
- csharp
- vb
name: SubstringAfter(string, string)
nameWithType: StringEx.SubstringAfter(string, string)
fullName: adas_core.Domain.Utils.StringEx.SubstringAfter(string, string)
type: Method
source:
remote:
path: adas-core.Domain/Utils/StringEx.cs
branch: document/release/1.0.1
repo: https://git.teralevel.io/adas/adas-core.git
id: SubstringAfter
path: ../../adas-core.Domain/Utils/StringEx.cs
startLine: 33
assemblies:
- adas-core.Domain
namespace: adas_core.Domain.Utils
summary: Returns the portion of the source string that follows the first occurrence of the specified value, using ordinal (case-sensitive, culture-insensitive) comparison. If the source or value is null or empty, or the value is not found within the source, the original source is returned unchanged.
example: []
syntax:
content: public static string SubstringAfter(this string source, string value)
parameters:
- id: source
type: System.String
description: The string to search within.
- id: value
type: System.String
description: The delimiter whose first occurrence marks the start of the returned substring.
return:
type: System.String
description: The substring after the first occurrence of value; otherwise, the original source.
content.vb: Public Shared Function SubstringAfter(source As String, value As String) As String
overload: adas_core.Domain.Utils.StringEx.SubstringAfter*
nameWithType.vb: StringEx.SubstringAfter(String, String)
fullName.vb: adas_core.Domain.Utils.StringEx.SubstringAfter(String, String)
name.vb: SubstringAfter(String, String)
- uid: adas_core.Domain.Utils.StringEx.SubstringBefore(System.String,System.String)
commentId: M:adas_core.Domain.Utils.StringEx.SubstringBefore(System.String,System.String)
id: SubstringBefore(System.String,System.String)
isExtensionMethod: true
parent: adas_core.Domain.Utils.StringEx
langs:
- csharp
- vb
name: SubstringBefore(string, string)
nameWithType: StringEx.SubstringBefore(string, string)
fullName: adas_core.Domain.Utils.StringEx.SubstringBefore(string, string)
type: Method
source:
remote:
path: adas-core.Domain/Utils/StringEx.cs
branch: document/release/1.0.1
repo: https://git.teralevel.io/adas/adas-core.git
id: SubstringBefore
path: ../../adas-core.Domain/Utils/StringEx.cs
startLine: 50
assemblies:
- adas-core.Domain
namespace: adas_core.Domain.Utils
summary: >-
Returns the portion of source that precedes the first occurrence of value, using ordinal comparison.
If either source or value is null or empty, or if value is not found within source, the original source is returned unchanged.
example: []
syntax:
content: public static string SubstringBefore(this string source, string value)
parameters:
- id: source
type: System.String
description: The string to extract the substring from.
- id: value
type: System.String
description: The delimiter whose first occurrence marks the end of the returned substring.
return:
type: System.String
description: The substring of source before the first occurrence of value, or the original source when no match is found or when either input is null or empty.
content.vb: Public Shared Function SubstringBefore(source As String, value As String) As String
overload: adas_core.Domain.Utils.StringEx.SubstringBefore*
nameWithType.vb: StringEx.SubstringBefore(String, String)
fullName.vb: adas_core.Domain.Utils.StringEx.SubstringBefore(String, String)
name.vb: SubstringBefore(String, String)
references:
- uid: System.String
commentId: T:System.String
parent: System
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.string
name: string
nameWithType: string
fullName: string
nameWithType.vb: String
fullName.vb: String
name.vb: String
- uid: adas_core.Domain.Utils
commentId: N:adas_core.Domain.Utils
href: adas_core.html
name: adas_core.Domain.Utils
nameWithType: adas_core.Domain.Utils
fullName: adas_core.Domain.Utils
spec.csharp:
- uid: adas_core
name: adas_core
href: adas_core.html
- name: .
- uid: adas_core.Domain
name: Domain
href: adas_core.Domain.html
- name: .
- uid: adas_core.Domain.Utils
name: Utils
href: adas_core.Domain.Utils.html
spec.vb:
- uid: adas_core
name: adas_core
href: adas_core.html
- name: .
- uid: adas_core.Domain
name: Domain
href: adas_core.Domain.html
- name: .
- uid: adas_core.Domain.Utils
name: Utils
href: adas_core.Domain.Utils.html
- uid: System.Object
commentId: T:System.Object
parent: System
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object
name: object
nameWithType: object
fullName: object
nameWithType.vb: Object
fullName.vb: Object
name.vb: Object
- uid: System.Object.Equals(System.Object)
commentId: M:System.Object.Equals(System.Object)
parent: System.Object
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)
name: Equals(object)
nameWithType: object.Equals(object)
fullName: object.Equals(object)
nameWithType.vb: Object.Equals(Object)
fullName.vb: Object.Equals(Object)
name.vb: Equals(Object)
spec.csharp:
- uid: System.Object.Equals(System.Object)
name: Equals
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)
- name: (
- uid: System.Object
name: object
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object
- name: )
spec.vb:
- uid: System.Object.Equals(System.Object)
name: Equals
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)
- name: (
- uid: System.Object
name: Object
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object
- name: )
- uid: System.Object.Equals(System.Object,System.Object)
commentId: M:System.Object.Equals(System.Object,System.Object)
parent: System.Object
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)
name: Equals(object, object)
nameWithType: object.Equals(object, object)
fullName: object.Equals(object, object)
nameWithType.vb: Object.Equals(Object, Object)
fullName.vb: Object.Equals(Object, Object)
name.vb: Equals(Object, Object)
spec.csharp:
- uid: System.Object.Equals(System.Object,System.Object)
name: Equals
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)
- name: (
- uid: System.Object
name: object
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object
- name: ','
- name: " "
- uid: System.Object
name: object
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object
- name: )
spec.vb:
- uid: System.Object.Equals(System.Object,System.Object)
name: Equals
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)
- name: (
- uid: System.Object
name: Object
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object
- name: ','
- name: " "
- uid: System.Object
name: Object
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object
- name: )
- uid: System.Object.GetHashCode
commentId: M:System.Object.GetHashCode
parent: System.Object
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object.gethashcode
name: GetHashCode()
nameWithType: object.GetHashCode()
fullName: object.GetHashCode()
nameWithType.vb: Object.GetHashCode()
fullName.vb: Object.GetHashCode()
spec.csharp:
- uid: System.Object.GetHashCode
name: GetHashCode
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object.gethashcode
- name: (
- name: )
spec.vb:
- uid: System.Object.GetHashCode
name: GetHashCode
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object.gethashcode
- name: (
- name: )
- uid: System.Object.GetType
commentId: M:System.Object.GetType
parent: System.Object
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object.gettype
name: GetType()
nameWithType: object.GetType()
fullName: object.GetType()
nameWithType.vb: Object.GetType()
fullName.vb: Object.GetType()
spec.csharp:
- uid: System.Object.GetType
name: GetType
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object.gettype
- name: (
- name: )
spec.vb:
- uid: System.Object.GetType
name: GetType
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object.gettype
- name: (
- name: )
- uid: System.Object.MemberwiseClone
commentId: M:System.Object.MemberwiseClone
parent: System.Object
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone
name: MemberwiseClone()
nameWithType: object.MemberwiseClone()
fullName: object.MemberwiseClone()
nameWithType.vb: Object.MemberwiseClone()
fullName.vb: Object.MemberwiseClone()
spec.csharp:
- uid: System.Object.MemberwiseClone
name: MemberwiseClone
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone
- name: (
- name: )
spec.vb:
- uid: System.Object.MemberwiseClone
name: MemberwiseClone
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone
- name: (
- name: )
- uid: System.Object.ReferenceEquals(System.Object,System.Object)
commentId: M:System.Object.ReferenceEquals(System.Object,System.Object)
parent: System.Object
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object.referenceequals
name: ReferenceEquals(object, object)
nameWithType: object.ReferenceEquals(object, object)
fullName: object.ReferenceEquals(object, object)
nameWithType.vb: Object.ReferenceEquals(Object, Object)
fullName.vb: Object.ReferenceEquals(Object, Object)
name.vb: ReferenceEquals(Object, Object)
spec.csharp:
- uid: System.Object.ReferenceEquals(System.Object,System.Object)
name: ReferenceEquals
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object.referenceequals
- name: (
- uid: System.Object
name: object
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object
- name: ','
- name: " "
- uid: System.Object
name: object
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object
- name: )
spec.vb:
- uid: System.Object.ReferenceEquals(System.Object,System.Object)
name: ReferenceEquals
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object.referenceequals
- name: (
- uid: System.Object
name: Object
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object
- name: ','
- name: " "
- uid: System.Object
name: Object
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object
- name: )
- uid: System.Object.ToString
commentId: M:System.Object.ToString
parent: System.Object
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object.tostring
name: ToString()
nameWithType: object.ToString()
fullName: object.ToString()
nameWithType.vb: Object.ToString()
fullName.vb: Object.ToString()
spec.csharp:
- uid: System.Object.ToString
name: ToString
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object.tostring
- name: (
- name: )
spec.vb:
- uid: System.Object.ToString
name: ToString
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object.tostring
- name: (
- name: )
- uid: System
commentId: N:System
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system
name: System
nameWithType: System
fullName: System
- uid: adas_core.Domain.Utils.StringEx.IsEmpty*
commentId: Overload:adas_core.Domain.Utils.StringEx.IsEmpty
href: adas_core.Domain.Utils.StringEx.html#adas_core_Domain_Utils_StringEx_IsEmpty_System_String_
name: IsEmpty
nameWithType: StringEx.IsEmpty
fullName: adas_core.Domain.Utils.StringEx.IsEmpty
- uid: System.Boolean
commentId: T:System.Boolean
parent: System
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.boolean
name: bool
nameWithType: bool
fullName: bool
nameWithType.vb: Boolean
fullName.vb: Boolean
name.vb: Boolean
- uid: adas_core.Domain.Utils.StringEx.IsEmptyOrWhiteSpace*
commentId: Overload:adas_core.Domain.Utils.StringEx.IsEmptyOrWhiteSpace
href: adas_core.Domain.Utils.StringEx.html#adas_core_Domain_Utils_StringEx_IsEmptyOrWhiteSpace_System_String_
name: IsEmptyOrWhiteSpace
nameWithType: StringEx.IsEmptyOrWhiteSpace
fullName: adas_core.Domain.Utils.StringEx.IsEmptyOrWhiteSpace
- uid: adas_core.Domain.Utils.StringEx.SubstringAfter*
commentId: Overload:adas_core.Domain.Utils.StringEx.SubstringAfter
href: adas_core.Domain.Utils.StringEx.html#adas_core_Domain_Utils_StringEx_SubstringAfter_System_String_System_String_
name: SubstringAfter
nameWithType: StringEx.SubstringAfter
fullName: adas_core.Domain.Utils.StringEx.SubstringAfter
- uid: adas_core.Domain.Utils.StringEx.SubstringBefore*
commentId: Overload:adas_core.Domain.Utils.StringEx.SubstringBefore
href: adas_core.Domain.Utils.StringEx.html#adas_core_Domain_Utils_StringEx_SubstringBefore_System_String_System_String_
name: SubstringBefore
nameWithType: StringEx.SubstringBefore
fullName: adas_core.Domain.Utils.StringEx.SubstringBefore