System.Runtime.Serialization.Formatters.Soap.Util.PArray C# (CSharp) Method

PArray() static private method

static private PArray ( int array ) : String
array int
return String
		internal static String PArray(int[] array)
		{
			if (array != null)
			{
				StringBuilder sb = new StringBuilder(10);
				sb.Append("[");		
				for (int i=0; i<array.Length; i++)
				{
					sb.Append(array[i]);
					if (i != array.Length -1)
						sb.Append(",");
				}
				sb.Append("]");
				return sb.ToString();
			}
			else
				return "";
		}
#endif

Usage Example

        internal void Dump()
        {
            InternalST.Soap("ParseRecord Dump ", PRparseRecordId);
            InternalST.Soap("Enums");
            Util.NVTrace("ParseType", ((Enum)PRparseTypeEnum).ToString());
            Util.NVTrace("ObjectType", ((Enum)PRobjectTypeEnum).ToString());
            Util.NVTrace("ArrayType", ((Enum)PRarrayTypeEnum).ToString());
            Util.NVTrace("MemberType", ((Enum)PRmemberTypeEnum).ToString());
            Util.NVTrace("MemberValue", ((Enum)PRmemberValueEnum).ToString());
            Util.NVTrace("ObjectPosition", ((Enum)PRobjectPositionEnum).ToString());
            Util.NVTrace("ParseState", ((Enum)PRparseStateEnum).ToString());
            InternalST.Soap("Basics");
            Util.NVTrace("Name", PRname);
            Util.NVTrace("PRisParsed", PRisParsed);
            Util.NVTrace("PRisProcessAttributes", PRisParsed);
            Util.NVTrace("PRnameXmlKey", PRnameXmlKey);
            Util.NVTrace("PRxmlNameSpace", PRxmlNameSpace);
            Util.NVTrace("Value ", PRvalue);
            Util.NVTrace("varValue ", PRvarValue);
            if (PRvarValue != null)
            {
                Util.NVTrace("varValue type", PRvarValue.GetType());
            }

            Util.NVTrace("keyDt", PRkeyDt);
            Util.NVTrace("dtType", PRdtType);
            Util.NVTrace("assemblyName", PRassemblyName);
            Util.NVTrace("code", ((Enum)PRdtTypeCode).ToString());
            Util.NVTrace("objectID", PRobjectId);
            Util.NVTrace("idRef", PRidRef);
            Util.NVTrace("isEnum", PRisEnum);
            InternalST.Soap("Array ");
            Util.NVTrace("arrayElementTypeString", PRarrayElementTypeString);
            Util.NVTrace("arrayElementType", PRarrayElementType);
            Util.NVTrace("arrayElementTypeCode", ((Enum)PRarrayElementTypeCode).ToString());
            Util.NVTrace("isArrayVariant", PRisArrayVariant);
            Util.NVTrace("primitiveArrayTypeString", PRprimitiveArrayTypeString);
            Util.NVTrace("rank", PRrank);
            Util.NVTrace("dimensions", Util.PArray(PRlengthA));
            Util.NVTrace("position", Util.PArray(PRpositionA));
            Util.NVTrace("lowerBoundA", Util.PArray(PRlowerBoundA));
            Util.NVTrace("upperBoundA", Util.PArray(PRupperBoundA));
            InternalST.Soap("Header ");
            Util.NVTrace("isMustUnderstand", PRisMustUnderstand);
            Util.NVTrace("isHeaderRoot", PRisHeaderRoot);
            Util.NVTrace("isAttributesProcessed", PRisAttributesProcessed);
            Util.NVTrace("isXmlAttribute", PRisXmlAttribute);

            InternalST.Soap("New Object");
            if (PRnewObj != null)
            {
                Util.NVTrace("newObj", PRnewObj);
            }

            /*
             * if ((objectInfo != null) && (objectInfo.objectType != null))
             * Util.NVTrace("objectInfo", objectInfo.objectType.ToString());
             */
        }