Org.BouncyCastle.Asn1.X509.GeneralNames.ToString C# (CSharp) Method

ToString() public method

public ToString ( ) : string
return string
		public override string ToString()
		{
			StringBuilder buf = new StringBuilder();
			string sep = Platform.NewLine;

			buf.Append("GeneralNames:");
			buf.Append(sep);

			foreach (GeneralName name in names)
			{
				buf.Append("    ");
				buf.Append(name);
				buf.Append(sep);
			}

			return buf.ToString();
		}
	}

Usage Example

Beispiel #1
0
        public override string ToString()
        {
            string        sep = Org.BouncyCastle.Utilities.Platform.NewLine;
            StringBuilder buf = new StringBuilder();

            buf.Append("DistributionPoint: [");
            buf.Append(sep);
            if (distributionPoint != null)
            {
                appendObject(buf, sep, "distributionPoint", distributionPoint.ToString());
            }
            if (reasons != null)
            {
                appendObject(buf, sep, "reasons", reasons.ToString());
            }
            if (cRLIssuer != null)
            {
                appendObject(buf, sep, "cRLIssuer", cRLIssuer.ToString());
            }
            buf.Append("]");
            buf.Append(sep);
            return(buf.ToString());
        }