aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Integration/ExtensionMethods/IExternalBridgeClientExtensions.cs
blob: 3e9546983020bd0e6bb31ee89f5e93fdf4e0214b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.Integration.ExternalBridge;

/// <summary>
/// Contains <see cref="IExternalBridgeClient"/> extension methods.
/// </summary>
public static class IExternalBridgeClientExtensions
{
    /// <summary>
    /// Casts the external bridge client to the specified type T.
    /// </summary>
    /// <typeparam name="T"></typeparam>
    /// <param name="client">The client.</param>
    /// <returns></returns>
    public static T As<T>(this IExternalBridgeClient client) where T : IExternalBridgeClient
    {
        return (T)client;
    }
}