Mercurial > pub > ImplabNet
comparison 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 |
comparison
equal
deleted
inserted
replaced
277:963b17c275be | 278:6691aff01de1 |
---|---|
1 using System; | |
2 | |
3 namespace Implab.ServiceHost.Unity | |
4 { | |
5 public class RootTypeReference : TypeReference { | |
6 readonly string m_name; | |
7 | |
8 readonly string m_namespace; | |
9 | |
10 readonly int m_genericParametersCount; | |
11 | |
12 public override string Name { | |
13 get { return m_name; } | |
14 } | |
15 | |
16 public override string Namespace { | |
17 get { return m_namespace; } | |
18 } | |
19 | |
20 public override int GenericParametersCount { | |
21 get { return m_genericParametersCount; } | |
22 } | |
23 | |
24 internal RootTypeReference(string ns, string name, int genericParameters) { | |
25 m_name = name; | |
26 m_genericParametersCount = genericParameters; | |
27 m_namespace = ns; | |
28 } | |
29 | |
30 internal override void Visit(TypeResolutionContext visitor) { | |
31 visitor.Visit(this); | |
32 } | |
33 | |
34 | |
35 } | |
36 } |