src/Kingdom.OrTools.Sat.Parameters.Tests/Extensions/ClassExtensionMethods.cs
/// <summary>
/// Initializes the <paramref name="instance"/> given an optional
/// <paramref name="callback"/>.
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="instance"></param>
/// <param name="callback"></param>
/// <returns></returns>
Initializes the  given an optional
.
Initializes the given an optional .
public static T Initialize<T>(this T instance, Action<T> callback = null)
        {
            callback?.Invoke(instance);
            return instance;
        }
public static T Initialize < T > ( this T instance , Action < T > callback = null ) { callback ? . Invoke ( instance ) ; return instance ; }
Initializes the  given an optional
.
Initializes the given an optional .
None
T
this
callback
Action<T>
None
instance
None
typeparam
None