##// END OF EJS Templates
Added Trace<T>.Debug(...) method for debug messages...
Added Trace<T>.Debug(...) method for debug messages Added ContainerBuilde.LoadConfig(Uri) method

File last commit:

r278:6691aff01de1 v3
r280:f07be402ab02 v3
Show More
SpecializedTypeReference.cs
51 lines | 1.5 KiB | text/x-csharp | CSharpLexer
/ Implab.ServiceHost / Unity / SpecializedTypeReference.cs
cin
Implab: added XmlDefaultSeializer (SerializersPool is now obsolete)...
r278 using System;
using System.Linq;
using System.Text;
namespace Implab.ServiceHost.Unity {
public class SpecializedTypeReference : TypeReference {
public override string Name {
get {
return GenericType.Name;
}
}
public override string Namespace {
get {
return GenericType.Namespace;
}
}
public override int GenericParametersCount {
get {
return GenericParameters.Length;
}
}
public TypeReference GenericType { get; private set; }
public TypeReference[] GenericParameters { get; private set; }
internal SpecializedTypeReference(TypeReference genericType, TypeReference[] genericParameters) {
GenericType = genericType;
GenericParameters = genericParameters;
}
internal override void Visit(TypeResolutionContext visitor) {
visitor.Visit(this);
}
internal override void WriteTypeName(StringBuilder builder) {
GenericType.WriteTypeName(builder);
}
internal override void WriteTypeParams(StringBuilder builder) {
builder.Append('{');
for (var i = 0; i < GenericParameters.Length; i++) {
if (i > 0)
builder.Append(',');
builder.Append(GenericParameters[i]);
}
builder.Append('}');
}
}
}