CopyPastor

Detecting plagiarism made easy.

Score: 0.8151373863220215; Reported for: String similarity Open both answers

Possible Plagiarism

Reposted on 2024-05-18
by Bravo Yeung

Original Post

Original - Posted on 2024-05-18
by Bravo Yeung



            
Present in both answers; Present only in the new answer; Present only in the old answer;

I also met the same thing.
Below method works for code of **.NET FrameWork** and **.NET core** (including .NET 5, 6, 7 ...).
If you need set condition for the type not equals to **string**, you can set the conditions as below:
```cs typeof(T) != typeof(string) ```
For example, the code is below:
[![condition breakpoint on type][1]][1]
May it be helpful for you.
[1]: https://i.sstatic.net/JB3EOz2C.png
Below method works for code of **.NET FrameWork** and **.NET core** (including .NET 5, 6, 7 ...).
If you need set condition for the type not equals to **string**, you can set the conditions as below:
```cs typeof(T) != typeof(string) ```
For example, the code is below:
[![enter image description here][1]][1]
May it be helpful for you.
[1]: https://i.sstatic.net/JB3EOz2C.png

        
Present in both answers; Present only in the new answer; Present only in the old answer;