/// <summary> /// Construct an <see cref="UntypedConnectable"/>. /// </summary> /// <typeparam name="A">A type.</typeparam> /// <param name="connectable"> /// The <see cref="IConnectableObservable{A}"/> /// to construct the UntypedConnectable from. /// </param> /// <returns>The constructed <see cref="UntypedConnectable"/></returns> public static UntypedConnectable Create <A>( IConnectableObservable <A> connectable) { return(new UntypedConnectable( connectable, connectable.GetType().GetTypeInfo().GetDeclaredMethod("Connect") )); }