예제 #1
0
        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;");
            }
        }
예제 #2
0
        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;");
            }
        }