Class StringExtensions
Formatwith extension for the string
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: Dapplo.HttpExtensions.Extensions
Assembly: Dapplo.HttpExtensions.dll
Syntax
public static class StringExtensions
Methods
| Improve this Doc View SourceFormatWith(String, IFormatProvider, Object[])
Format the string "format" with the source
Declaration
public static string FormatWith(this string format, IFormatProvider provider, params object[] sources)
Parameters
Type | Name | Description |
---|---|---|
System.String | format | String with formatting, like {name} |
IFormatProvider | provider | IFormatProvider |
System.Object[] | sources | object with properties, if a property has the type IDictionary string,string it can used these parameters too |
Returns
Type | Description |
---|---|
System.String | Formatted string |
FormatWith(String, Object[])
Format the string "format" with the source
Declaration
public static string FormatWith(this string format, params object[] sources)
Parameters
Type | Name | Description |
---|---|---|
System.String | format | String with formatting, like {name} |
System.Object[] | sources | object [] with properties, if a property has the type IDictionary string,string it can used these parameters too |
Returns
Type | Description |
---|---|
System.String | Formatted string |