Statistics
| Branch: | Revision:

root / trunk / NetSparkle / NetSparkleAssemblyAccessor.cs @ 049333d2

History | View | Annotate | Download (1.5 kB)

1
´╗┐using System;
2
using System.Collections.Generic;
3
using System.Linq;
4
using System.Text;
5
using System.Reflection;
6
using System.IO;
7
using AppLimit.NetSparkle.Interfaces;
8

    
9
namespace AppLimit.NetSparkle
10
{
11
    public class NetSparkleAssemblyAccessor : INetSparkleAssemblyAccessor
12
    {
13
        INetSparkleAssemblyAccessor _internalAccessor = null;
14

    
15
        public NetSparkleAssemblyAccessor(String assemblyName, Boolean bUseReflectionAccesor)
16
        {
17
            if ( bUseReflectionAccesor )
18
                _internalAccessor = new NetSparkleAssemblyReflectionAccessor(assemblyName);
19
            else
20
                _internalAccessor = new NetSparkleAssemblyDiagnosticsAccessor(assemblyName);
21
        }
22

    
23
        #region INetSparkleAssemblyAccessor Members
24

    
25
        public string AssemblyCompany
26
        {
27
            get { return _internalAccessor.AssemblyCompany; }
28
        }
29

    
30
        public string AssemblyCopyright
31
        {
32
            get { return _internalAccessor.AssemblyCopyright; }
33
        }
34

    
35
        public string AssemblyDescription
36
        {
37
            get { return _internalAccessor.AssemblyDescription; }
38
        }
39

    
40
        public string AssemblyProduct
41
        {
42
            get { return _internalAccessor.AssemblyProduct; }
43
        }
44

    
45
        public string AssemblyTitle
46
        {
47
            get { return _internalAccessor.AssemblyTitle; }
48
        }
49

    
50
        public string AssemblyVersion
51
        {
52
            get { return _internalAccessor.AssemblyVersion; }
53
        }
54

    
55
        #endregion
56
    }
57
}