System.Runtime.Remoting.MetadataServices.WsdlParser.URTMethod.PrintPropertyBody C# (CSharp) Method

PrintPropertyBody() private method

private PrintPropertyBody ( TextWriter textWriter, String indentation, StringBuilder sb, String bodyPrefix ) : void
textWriter System.IO.TextWriter
indentation String
sb StringBuilder
bodyPrefix String
return void
            private void PrintPropertyBody(TextWriter textWriter, String indentation, StringBuilder sb, String bodyPrefix)
            {

                sb.Length = 0;
                sb.Append(indentation);
                sb.Append('{');
                textWriter.WriteLine(sb);

                String newIndentation = indentation + "    ";
                sb.Length = 0;
                sb.Append(newIndentation);
                if (_wsdlMethodInfo.bGet)
                {
                    sb.Length = 0;
                    sb.Append(newIndentation);
                    PrintSoapAction(_wsdlMethodInfo.soapActionGet, sb);
                    textWriter.WriteLine(sb);

                    sb.Length = 0;
                    sb.Append(newIndentation);
                    sb.Append("get{return ");
                    PrintMethodName(sb, bodyPrefix, _wsdlMethodInfo.propertyName);
                    //sb.Append(bodyPrefix);
                    //sb.Append(_wsdlMethodInfo.propertyName);
                    sb.Append(";}");
                    textWriter.WriteLine(sb);
                }

                if (_wsdlMethodInfo.bSet)
                {
                    if (_wsdlMethodInfo.bGet)
                        textWriter.WriteLine();

                    sb.Length = 0;
                    sb.Append(newIndentation);
                    PrintSoapAction(_wsdlMethodInfo.soapActionSet, sb);
                    textWriter.WriteLine(sb);

                    sb.Length = 0;
                    sb.Append(newIndentation);
                    sb.Append("set{");
                    PrintMethodName(sb, bodyPrefix, _wsdlMethodInfo.propertyName);
                    //sb.Append(bodyPrefix);
                    //sb.Append(_wsdlMethodInfo.propertyName);
                    sb.Append("= value;}");
                    textWriter.WriteLine(sb);
                }

                sb.Length = 0;
                sb.Append(indentation);
                sb.Append('}');
                textWriter.WriteLine(sb);
            }