private void Write(ContainerNameFromTypeMethod method) { WriteSignature(method); using (_builder.IndentBraced) { _("string resolvedType;"); _("resolvedType = Context.DefaultResolveNameInternal(clientType, \"{0}\", \"{1}\");", method.ServerNamespace, method.ClientNamespace); _("if (!string.IsNullOrEmpty(resolvedType))"); using (_builder.IndentBraced) { _("return resolvedType;"); } _("return clientType.FullName;"); } }