CSharp_String_Methods_CheatSheet
CSharp_String_Methods_CheatSheet
## IndexOf()
- **Use Case**: Find the position of the first occurrence of a character or substring.
```csharp
```
## LastIndexOf()
- **Use Case**: Find the last occurrence useful for file paths, URLs.
```csharp
```
## Substring()
```csharp
```
## IndexOfAny()
- **Use Case**: Find the first match of any char in a group.
```csharp
```
```csharp
int closePos = 0;
while (true)
closePos = closeIndex + 1;
}
```
## Summary Table
|-----------------|-----------------------------------------|--------------|
---
## Real-World Applications
|--------------|----------------------------------------------------------|