Mercurial > pub > ImplabNet
diff Implab.ServiceHost/Unity/RootTypeReference.cs @ 278:6691aff01de1 v3
Implab: added XmlDefaultSeializer (SerializersPool is now obsolete)
Implab.ServiceHost: rewritten TypeReference (added support for nested types), stable API
author | cin |
---|---|
date | Thu, 03 May 2018 09:59:44 +0300 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Implab.ServiceHost/Unity/RootTypeReference.cs Thu May 03 09:59:44 2018 +0300 @@ -0,0 +1,36 @@ +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); + } + + + } +} \ No newline at end of file