X
Avoid polluting extension methods on every type with a 'X.*' short-hand
Assembly: ServiceStack.Text.dll
View Source
Declaration
public static class X
Methods
Map<From, To>(From, Func<From, To>)
View Source
Declaration
public static To Map<From, To>(From from, Func<From, To> fn)
Returns
<To>
Parameters
Type | Name |
---|---|
<From> | from |
System.Func<<From>,<To>> | fn |
Type Parameters
From
To
Apply<T>(T, Action<T>)
View Source
Declaration
public static T Apply<T>(T obj, Action<T> fn = null)
Returns
<T>
Parameters
Type | Name |
---|---|
<T> | obj |
System.Action<<T>> | fn |
Type Parameters
T