/// <summary>
 /// Converts this PartialSelection instance into a string with single-line comments (in the active language) marking properties.
 /// </summary>
 public string ToString(CommentBuilder commentBuilder)
 {
     string asStr = commentBuilder.GetComment("  Element Name: ", ElementName);
     asStr += commentBuilder.GetComment("  ElementType: ", ElementType.ToString());
     asStr += commentBuilder.GetComment("  Range: ", Range.ToString());
     asStr += commentBuilder.GetComment("-----------");
     asStr += Text + Environment.NewLine;
     asStr += commentBuilder.GetComment("-----------");
     asStr += Environment.NewLine;
     return asStr;
 }
 /// <summary>
 /// Converts this multi-select instance into a string with single-line comments (in the active language) marking properties.
 /// </summary>
 public override string ToString()
 {
     CommentBuilder commentBuilder = new CommentBuilder(Language);
     string asStr;
     asStr = commentBuilder.GetComment("FileName: ", FileName);
     asStr += commentBuilder.GetComment("Type: ", TypeName);
     asStr += commentBuilder.GetComment("Language: ", Language);
     asStr += commentBuilder.GetComment("WasCut: ", WasCut.ToString());
     asStr += commentBuilder.GetComment("ContainsOnlyMembers: ", ContainsOnlyMembers.ToString());
     asStr += commentBuilder.GetComment("Selections: ");
     foreach (PartialSelection selection in Selections)
         asStr += selection.ToString(commentBuilder);
     return asStr;
 }