Class StringExtensions
Common string extension methods
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()
Namespace: Mediachase.MetaDataPlus.Extensions
Assembly: Mediachase.MetaDataPlus.dll
Version: 10.8.0Syntax
public static class StringExtensions
Methods
GetSerializedMetaFieldValue(String, MetaField)
Gets the meta field value from serialization format.
Declaration
public static object GetSerializedMetaFieldValue(this string value, MetaField metaField)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | The value. |
MetaField | metaField | The meta field. |
Returns
Type | Description |
---|---|
System.Object | The parsed meta field value |
TryParseDecimalExactCulture(String, CultureInfo, out Decimal)
Tries to parse the string into a decimal for the specified culture with exact thousand and decimal seperators.
Declaration
public static bool TryParseDecimalExactCulture(this string value, CultureInfo culture, out decimal result)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | The value. |
System.Globalization.CultureInfo | culture | The culture. |
System.Decimal | result | The result. |
Returns
Type | Description |
---|---|
System.Boolean |
TryParseDoubleExactCulture(String, CultureInfo, out Double)
Tries to parse the string into a double for the specified culture with exact thousand and decimal seperators.
Declaration
public static bool TryParseDoubleExactCulture(this string value, CultureInfo culture, out double result)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | The value. |
System.Globalization.CultureInfo | culture | The culture. |
System.Double | result | The result. |
Returns
Type | Description |
---|---|
System.Boolean |
TryParseIntegerExactCulture(String, CultureInfo, out Int32)
Tries to parse the string into a integer for the specified culture with exact thousand seperator.
Declaration
public static bool TryParseIntegerExactCulture(this string value, CultureInfo culture, out int result)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | The value. |
System.Globalization.CultureInfo | culture | The culture. |
System.Int32 | result | The result. |
Returns
Type | Description |
---|---|
System.Boolean |