Class StringExtensions
Inheritance
System.Object
StringExtensions
Namespace: Syncfusion.Data.Extensions
Assembly: Syncfusion.Data.Portable.dll
Syntax
public static class StringExtensions : Object
Methods
FormatByName(String, IDictionary<String, Object>)
Formats the given string values.
Declaration
public static string FormatByName(this string format, IDictionary<string, object> values)
Parameters
Type | Name | Description |
---|---|---|
System.String | format | |
System.Collections.Generic.IDictionary<System.String, System.Object> | values |
Returns
Type | Description |
---|---|
System.String | The formatted string values. |
FormatByName(String, IFormatProvider, IDictionary<String, Object>)
Formats the given string values using format provider.
Declaration
public static string FormatByName(this string format, IFormatProvider provider, IDictionary<string, object> values)
Parameters
Type | Name | Description |
---|---|---|
System.String | format | |
System.IFormatProvider | provider | |
System.Collections.Generic.IDictionary<System.String, System.Object> | values |
Returns
Type |
---|
System.String |
FormatByName(String, IFormatProvider, Func<String, Object>)
Formats the given string values using format provider.
Declaration
public static string FormatByName(this string format, IFormatProvider provider, Func<string, object> valueProvider)
Parameters
Type | Name | Description |
---|---|---|
System.String | format | |
System.IFormatProvider | provider | |
System.Func<System.String, System.Object> | valueProvider |
Returns
Type | Description |
---|---|
System.String | The string formatted according to |
ParseFormat(String, Boolean, Dictionary<String, PropertyDescriptor>, out String, out PropertyDescriptor[])
Parses the format of the given string.
Declaration
public static void ParseFormat(this string value, bool raiseException, Dictionary<string, PropertyDescriptor> propertyDescriptionCollection, out string result, out PropertyDescriptor[] propertyDescriptor)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | |
System.Boolean | raiseException | |
System.Collections.Generic.Dictionary<System.String, System.ComponentModel.PropertyDescriptor> | propertyDescriptionCollection | |
System.String | result | |
System.ComponentModel.PropertyDescriptor[] | propertyDescriptor |