예제 #1
0
 private void Write27_StaticMethodMetadata(string n, string ns, StaticMethodMetadata o, bool isNullable, bool needType)
 {
     if (o == null)
     {
         if (isNullable)
         {
             base.WriteNullTagLiteral(n, ns);
         }
     }
     else
     {
         if (!needType && !(o.GetType() == typeof(StaticMethodMetadata)))
         {
             throw base.CreateUnknownTypeException(o);
         }
         base.WriteStartElement(n, ns, o, false, null);
         if (needType)
         {
             base.WriteXsiType("StaticMethodMetadata", "http://schemas.microsoft.com/cmdlets-over-objects/2009/11");
         }
         base.WriteAttribute("MethodName", "", o.MethodName);
         base.WriteAttribute("CmdletParameterSet", "", o.CmdletParameterSet);
         this.Write23_Item("ReturnValue", "http://schemas.microsoft.com/cmdlets-over-objects/2009/11", o.ReturnValue, false, false);
         StaticMethodParameterMetadata[] parameters = o.Parameters;
         if (parameters != null)
         {
             base.WriteStartElement("Parameters", "http://schemas.microsoft.com/cmdlets-over-objects/2009/11", null, false);
             for (int i = 0; i < parameters.Length; i++)
             {
                 this.Write26_StaticMethodParameterMetadata("Parameter", "http://schemas.microsoft.com/cmdlets-over-objects/2009/11", parameters[i], false, false);
             }
             base.WriteEndElement();
         }
         base.WriteEndElement(o);
     }
 }