##// END OF EJS Templates
Добавлена метка v3.0.14 для набора изменений 95896f882995
Добавлена метка v3.0.14 для набора изменений 95896f882995

File last commit:

r289:95896f882995 v3.0.14 v3
r290:d1de82f869c9 v3
Show More
ArrayTypeReference.cs
56 lines | 1.4 KiB | text/x-csharp | CSharpLexer
cin
Added tests for Implab.ServiceHost.Unity configuration loader.
r289 using System;
using System.Text;
namespace Implab.ServiceHost.Unity {
public class ArrayTypeReference : TypeReference {
public int Rank { get; private set; }
public TypeReference ItemsType { get; private set; }
public override string Name {
get {
return ItemsType.Name;
}
}
public override string ClrName {
get {
return new StringBuilder()
.Append(ItemsType.ClrName)
.Append("[")
.Append(',', Rank - 1)
.Append("]")
.ToString();
}
}
public override string Namespace {
get {
return ItemsType.Namespace;
}
}
public override int GenericParametersCount {
get {
return 0;
}
}
internal ArrayTypeReference(TypeReference itemsType, int rank) {
ItemsType = itemsType;
Rank = rank;
}
internal override void Visit(TypeResolutionContext visitor) {
visitor.Visit(this);
}
override public string ToString() {
return new StringBuilder()
.Append(ItemsType.ToString())
.Append('[')
.Append(',', Rank - 1)
.Append(']')
.ToString();
}
}
}