/// <summary> Gets. </summary> /// <typeparam name="T1"> Generic type parameter. </typeparam> /// <typeparam name="T2"> Generic type parameter. </typeparam> /// <typeparam name="T3"> Generic type parameter. </typeparam> /// <typeparam name="T4"> Generic type parameter. </typeparam> /// <param name="key"> The key. </param> /// <param name="o"> [out] The out O<T1,T2,T3,T4> to process. </param> /// <exception cref="KeyNotFoundException"> Thrown when a Key Not Found error condition occurs. </exception> public void Get <T1, T2, T3, T4>(string key, out O <T1, T2, T3, T4> o) { if (!OHandler <T1, T2, T3, T4> .Get(key, out o)) { throw new KeyNotFoundException(nameof(key)); } }
/// <summary> Gets. </summary> /// <typeparam name="T1"> Generic type parameter. </typeparam> /// <typeparam name="T2"> Generic type parameter. </typeparam> /// <typeparam name="T3"> Generic type parameter. </typeparam> /// <typeparam name="T4"> Generic type parameter. </typeparam> /// <param name="key"> The key. </param> /// <param name="o1"> [out] The first out T1. </param> /// <param name="o2"> [out] The second out T2. </param> /// <param name="o3"> [out] The third out T3. </param> /// <param name="o4"> [out] The fourth out T4. </param> /// <exception cref="KeyNotFoundException"> Thrown when a Key Not Found error condition occurs. </exception> public void Get <T1, T2, T3, T4>(string key, out T1 o1, out T2 o2, out T3 o3, out T4 o4) { if (!OHandler <T1, T2, T3, T4> .Get(key, out O <T1, T2, T3, T4> o)) { throw new KeyNotFoundException(nameof(key)); } o.Invoke(out o1, out o2, out o3, out o4); }
/// <summary> Gets. </summary> /// <typeparam name="T1"> Generic type parameter. </typeparam> /// <typeparam name="T2"> Generic type parameter. </typeparam> /// <param name="key"> The key. </param> /// <param name="o1"> [out] The first out T1. </param> /// <param name="o2"> [out] The second out T2. </param> /// <exception cref="KeyNotFoundException"> Thrown when a Key Not Found error condition occurs. </exception> public void Get <T1, T2>(string key, out T1 o1, out T2 o2) { if (!OHandler <T1, T2> .Get(key, out O <T1, T2> o)) { throw new KeyNotFoundException(nameof(key)); } o.Invoke(out o1, out o2); }