aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Stubs/AvailableStub.cs
blob: 64fbfbe9b629aa91fb8ea8e154525ed399899d3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.Transport;

namespace Tango.Stubs
{
    public class AvailableStub
    {
        public Type Type { get; set; }

        public String Name { get; set; }

        public String Description { get; set; }

        public AvailableStub(Type type, String name, String description)
        {
            Type = type;
            Name = name;
            Description = description;
        }

        public StubBase CreateInstance(ITransporter transporter)
        {
            return Activator.CreateInstance(Type, transporter) as StubBase;
        }
    }
}