Esempio n. 1
0
 private void Write5_Item(string n, string ns, CmdletParameterMetadataValidateLength o, bool isNullable, bool needType)
 {
     if (o == null)
     {
         if (isNullable)
         {
             base.WriteNullTagLiteral(n, ns);
         }
     }
     else
     {
         if (!needType && !(o.GetType() == typeof(CmdletParameterMetadataValidateLength)))
         {
             throw base.CreateUnknownTypeException(o);
         }
         base.WriteStartElement(n, ns, o, false, null);
         if (needType)
         {
             base.WriteXsiType(null, "http://schemas.microsoft.com/cmdlets-over-objects/2009/11");
         }
         base.WriteAttribute("Min", "", o.Min);
         base.WriteAttribute("Max", "", o.Max);
         base.WriteEndElement(o);
     }
 }