view Implab.ServiceHost/Unity/RootTypeReference.cs @ 279:8714471e8d78 v3

Container configuration cleanup, RC2
author cin
date Fri, 04 May 2018 18:12:42 +0300
parents 6691aff01de1
children
line wrap: on
line source

using System;

namespace Implab.ServiceHost.Unity
{
    public class RootTypeReference : TypeReference {
        readonly string m_name;

        readonly string m_namespace;

        readonly int m_genericParametersCount;

        public override string Name {
            get { return m_name; }
        }

        public override string Namespace {
            get { return m_namespace; }
        }

        public override int GenericParametersCount {
            get { return m_genericParametersCount; }
        }

        internal RootTypeReference(string ns, string name, int genericParameters) {
            m_name = name;
            m_genericParametersCount = genericParameters;
            m_namespace = ns;
        }

        internal override void Visit(TypeResolutionContext visitor) {
            visitor.Visit(this);
        }


    }
}