public override string ToString() {
if ((object)this == (object)Wildcard) {
return "*";
}
else {
if (this.Namespace.Length == 0) {
return this.Name;
}
else if ((object)this.Namespace == (object)wildcard) {
return "*:" + this.Name;
}
else if (this.exclude) {
return "{~" + this.Namespace + "}:" + this.Name;
}
else {
return "{" + this.Namespace + "}:" + this.Name;
}
}
}