Beispiel #1
0
        // Convert this object into a string.
        public override String ToString()
        {
            StringBuilder builder = new StringBuilder();

            if (strName != null)
            {
                builder.Append(strName);
            }
            if (strCulture != null)
            {
                builder.Append(", culture=");
                builder.Append('"');
                builder.Append(strCulture);
                builder.Append('"');
            }
            if (version != null)
            {
                builder.Append(", version=");
                builder.Append('"');
                builder.Append(version.ToString());
                builder.Append('"');
            }
            if (publicKeyToken != null)
            {
                builder.Append(", publicKeyToken=");
                builder.Append('"');
                foreach (byte value in publicKeyToken)
                {
                    BitConverter.AppendHex(builder, value);
                }
                builder.Append('"');
            }
            if (strProcessorArchitecture != null)
            {
                builder.Append(", processorArchitecture =");
                builder.Append('"');
                builder.Append(strProcessorArchitecture);
                builder.Append('"');
            }
            return(builder.ToString());
        }