Class StringExtensions
Inheritance
System.Object
StringExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Xbim.Ifc4.dll
Syntax
public static class StringExtensions
Methods
|
Improve this Doc
View Source
IfEmptyThen(Nullable<IfcLabel>, Nullable<IfcLabel>)
Declaration
public static string IfEmptyThen(this IfcLabel? thisOne, IfcLabel? then)
Parameters
| Type |
Name |
Description |
| System.Nullable<IfcLabel> |
thisOne |
|
| System.Nullable<IfcLabel> |
then |
|
Returns
| Type |
Description |
| System.String |
|
|
Improve this Doc
View Source
IfEmptyThen(String, String)
Declaration
public static string IfEmptyThen(this string thisOne, string then)
Parameters
| Type |
Name |
Description |
| System.String |
thisOne |
|
| System.String |
then |
|
Returns
| Type |
Description |
| System.String |
|
|
Improve this Doc
View Source
IfEmptyThen(IfcLabel, Nullable<IfcLabel>)
Declaration
public static string IfEmptyThen(this IfcLabel thisOne, IfcLabel? then)
Parameters
Returns
| Type |
Description |
| System.String |
|
|
Improve this Doc
View Source
IfEmptyThen(IfcLabel, IfcLabel)
if this string is not empty or white space it is returned,
if it is empty or white space the then string is returned if it is not null or white space
if both are null or white space the empty string is returned
Declaration
public static string IfEmptyThen(this IfcLabel thisOne, IfcLabel then)
Parameters
Returns
| Type |
Description |
| System.String |
|
|
Improve this Doc
View Source
IsEmpty(Nullable<IfcLabel>)
True if the string is empty or any white space
Declaration
public static bool IsEmpty(this IfcLabel? label)
Parameters
| Type |
Name |
Description |
| System.Nullable<IfcLabel> |
label |
|
Returns
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
IsEmpty(Nullable<IfcText>)
True if the string is empty or any white space
Declaration
public static bool IsEmpty(this IfcText? label)
Parameters
| Type |
Name |
Description |
| System.Nullable<IfcText> |
label |
|
Returns
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
IsEmpty(String)
Declaration
public static bool IsEmpty(this string label)
Parameters
| Type |
Name |
Description |
| System.String |
label |
|
Returns
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
IsEmpty(IfcLabel)
True if the string is empty or any white space
Declaration
public static bool IsEmpty(this IfcLabel label)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
IsEmpty(IfcText)
True if the string is empty or any white space
Declaration
public static bool IsEmpty(this IfcText label)
Parameters
| Type |
Name |
Description |
| IfcText |
label |
|
Returns
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
IsSame(Nullable<IfcIdentifier>, Nullable<IfcIdentifier>)
Declaration
public static bool IsSame(this IfcIdentifier? label, IfcIdentifier? compare)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
IsSame(Nullable<IfcIdentifier>, String)
Declaration
public static bool IsSame(this IfcIdentifier? label, string compare)
Parameters
| Type |
Name |
Description |
| System.Nullable<IfcIdentifier> |
label |
|
| System.String |
compare |
|
Returns
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
IsSame(Nullable<IfcLabel>, Nullable<IfcLabel>)
Declaration
public static bool IsSame(this IfcLabel? label, IfcLabel? compare)
Parameters
| Type |
Name |
Description |
| System.Nullable<IfcLabel> |
label |
|
| System.Nullable<IfcLabel> |
compare |
|
Returns
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
IsSame(Nullable<IfcLabel>, String)
Declaration
public static bool IsSame(this IfcLabel? label, string compare)
Parameters
| Type |
Name |
Description |
| System.Nullable<IfcLabel> |
label |
|
| System.String |
compare |
|
Returns
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
IsSame(String, String)
Compares two strings ignoring culture and case
Declaration
public static bool IsSame(this string str, string compare)
Parameters
| Type |
Name |
Description |
| System.String |
str |
|
| System.String |
compare |
|
Returns
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
IsSame(IfcIdentifier, String)
Declaration
public static bool IsSame(this IfcIdentifier label, string compare)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
IsSame(IfcIdentifier, IfcIdentifier)
Declaration
public static bool IsSame(this IfcIdentifier label, IfcIdentifier compare)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
IsSame(IfcLabel, String)
Declaration
public static bool IsSame(this IfcLabel label, string compare)
Parameters
| Type |
Name |
Description |
| IfcLabel |
label |
|
| System.String |
compare |
|
Returns
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
IsSame(IfcLabel, IfcLabel)
Declaration
public static bool IsSame(this IfcLabel label, IfcLabel compare)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
Truncate(String, Int32)
Declaration
public static string Truncate(this string value, int maxLength)
Parameters
| Type |
Name |
Description |
| System.String |
value |
|
| System.Int32 |
maxLength |
|
Returns
| Type |
Description |
| System.String |
|