Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

LinkedList<T> Example is broken #9546

Copy link
Copy link
Closed
@taha-ghadirian

Description

@taha-ghadirian
Issue body actions

Hello, I found this line of code in LinkedList<T> C# docs, but this line is not mentioned in outputs.

Console.WriteLine("sentence.Contains(\"jumps\") = {0}",
sentence.Contains("jumps"));

However, there is another LinkedList<T>.Contains example in this file, but this is after cleaning list:

//<Snippet11>
// Release all the nodes.
sentence.Clear();
Console.WriteLine();
Console.WriteLine("Test 17: Clear linked list. Contains 'jumps' = {0}",
sentence.Contains("jumps"));
//</Snippet11>

My recommendation is to move the first one before //<Snippet11> as a new snippet.
I love to work on this issue as my first contribution on dotnet/dotnet-api-docs

Steps that I want to produce:

  1. Change //<Snippet11> to //<Snippet12>
  2. Add new snippet before it as //<Snippet11>
  3. Write the example before cleaning the list
  4. Add it to example outputs

Metadata

Metadata

Assignees

No one assigned

    Labels

    Pri3Indicates issues/PRs that are low priorityIndicates issues/PRs that are low priority

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.