As per the docs:
public int LastIndexOf (char value, int startIndex, int count)
“The search proceeds from
startIndex
toward the beginning of this instance.”
The first comma before index 223 occurs at index 221.
More Related Contents:
- How to create a new object instance from a Type
- Reading large text files with streams in C#
- How do I replace the *first instance* of a string in .NET?
- How do I get the computer name in .NET
- No generic implementation of OrderedDictionary?
- How to print the current Stack Trace in .NET without any exception?
- Centering controls within a form in .NET (Winforms)?
- Get the index of the nth occurrence of a string?
- Custom numeric format string to always display the sign
- Use XML includes or config references in app.config to include other config files’ settings
- AutoMapper vs ValueInjecter [closed]
- Get thumbnail image of video file in C# [closed]
- Differences between ExpandoObject, DynamicObject and dynamic
- Read a XML (from a string) and get some fields – Problems reading XML
- How to delete a file after checking whether it exists
- HttpClient single instance with different authentication headers
- How to check that a uri string is valid
- How do I implement a progress bar in C#?
- Why is modulus operator not working for double in c#?
- Add vertical scroll bar to panel
- Visual Studio – project shows up as “Miscellaneous Files”
- Horrible performance using SqlCommand Async methods with large data
- Remove item from list based on condition
- Could not load file or assembly ‘System.ValueTuple’
- Consume a SOAP web service without relying on the app.config
- .net Framework Error (HRESULT 0x8007000B)
- How can I show a tooltip on a disabled button?
- How to catch a key press on a C# .NET form
- Prism assembly reference failure: System.Windows.Interactivity
- Sending mail without installing an SMTP server