Statistics
| Branch: | Revision:

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

History | View | Annotate | Download (1.5 kB)

1 46426dbd Panagiotis Kanavos
´╗┐using System;
2 46426dbd Panagiotis Kanavos
using System.Collections.Generic;
3 46426dbd Panagiotis Kanavos
using System.Linq;
4 46426dbd Panagiotis Kanavos
using System.Text;
5 46426dbd Panagiotis Kanavos
using System.Reflection;
6 46426dbd Panagiotis Kanavos
using System.IO;
7 46426dbd Panagiotis Kanavos
using AppLimit.NetSparkle.Interfaces;
8 46426dbd Panagiotis Kanavos
9 46426dbd Panagiotis Kanavos
namespace AppLimit.NetSparkle
10 46426dbd Panagiotis Kanavos
{
11 46426dbd Panagiotis Kanavos
    public class NetSparkleAssemblyAccessor : INetSparkleAssemblyAccessor
12 46426dbd Panagiotis Kanavos
    {
13 46426dbd Panagiotis Kanavos
        INetSparkleAssemblyAccessor _internalAccessor = null;
14 46426dbd Panagiotis Kanavos
15 46426dbd Panagiotis Kanavos
        public NetSparkleAssemblyAccessor(String assemblyName, Boolean bUseReflectionAccesor)
16 46426dbd Panagiotis Kanavos
        {
17 46426dbd Panagiotis Kanavos
            if ( bUseReflectionAccesor )
18 46426dbd Panagiotis Kanavos
                _internalAccessor = new NetSparkleAssemblyReflectionAccessor(assemblyName);
19 46426dbd Panagiotis Kanavos
            else
20 46426dbd Panagiotis Kanavos
                _internalAccessor = new NetSparkleAssemblyDiagnosticsAccessor(assemblyName);
21 46426dbd Panagiotis Kanavos
        }
22 46426dbd Panagiotis Kanavos
23 46426dbd Panagiotis Kanavos
        #region INetSparkleAssemblyAccessor Members
24 46426dbd Panagiotis Kanavos
25 46426dbd Panagiotis Kanavos
        public string AssemblyCompany
26 46426dbd Panagiotis Kanavos
        {
27 46426dbd Panagiotis Kanavos
            get { return _internalAccessor.AssemblyCompany; }
28 46426dbd Panagiotis Kanavos
        }
29 46426dbd Panagiotis Kanavos
30 46426dbd Panagiotis Kanavos
        public string AssemblyCopyright
31 46426dbd Panagiotis Kanavos
        {
32 46426dbd Panagiotis Kanavos
            get { return _internalAccessor.AssemblyCopyright; }
33 46426dbd Panagiotis Kanavos
        }
34 46426dbd Panagiotis Kanavos
35 46426dbd Panagiotis Kanavos
        public string AssemblyDescription
36 46426dbd Panagiotis Kanavos
        {
37 46426dbd Panagiotis Kanavos
            get { return _internalAccessor.AssemblyDescription; }
38 46426dbd Panagiotis Kanavos
        }
39 46426dbd Panagiotis Kanavos
40 46426dbd Panagiotis Kanavos
        public string AssemblyProduct
41 46426dbd Panagiotis Kanavos
        {
42 46426dbd Panagiotis Kanavos
            get { return _internalAccessor.AssemblyProduct; }
43 46426dbd Panagiotis Kanavos
        }
44 46426dbd Panagiotis Kanavos
45 46426dbd Panagiotis Kanavos
        public string AssemblyTitle
46 46426dbd Panagiotis Kanavos
        {
47 46426dbd Panagiotis Kanavos
            get { return _internalAccessor.AssemblyTitle; }
48 46426dbd Panagiotis Kanavos
        }
49 46426dbd Panagiotis Kanavos
50 46426dbd Panagiotis Kanavos
        public string AssemblyVersion
51 46426dbd Panagiotis Kanavos
        {
52 46426dbd Panagiotis Kanavos
            get { return _internalAccessor.AssemblyVersion; }
53 46426dbd Panagiotis Kanavos
        }
54 46426dbd Panagiotis Kanavos
55 46426dbd Panagiotis Kanavos
        #endregion
56 46426dbd Panagiotis Kanavos
    }
57 46426dbd Panagiotis Kanavos
}